<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div><br></div><div>Thanks for the answers so far.</div><div><br></div><div>The problem lies not with the page title but with the Group name. I want to use $Groupspaced so that "ODBCDataProvider" is spaced out on this page: <a href="http://impressedpaving.co.uk/matt/index.php?n=ODBCDataProvider.ODBCDataProviderNotLoadingOnMacintosh">http://impressedpaving.co.uk/matt/index.php?n=ODBCDataProvider.ODBCDataProviderNotLoadingOnMacintosh</a></div><div><br></div><div>But if I was to do this, the group EasyCatalog then ends up as Easy Catalog.</div><div><br></div><div>Which is why I would love to be able to use an IF statement in my tmpl file.</div><div><br><div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Regards,</div><div><br></div><div>Matt Clinton</div><div>65bit Software Limited</div><div><a href="http://www.65bit.com">www.65bit.com</a></div><div><br></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br><div><div>On 7 Oct 2013, at 13:47, Russ <<a href="mailto:pmwiki@russhosting.com">pmwiki@russhosting.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
<div text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Perhaps instead of trying to compensate
for spaces the page name, you can display the page {$Title}
instead and set the (:title: ) of the wiki page accordingly?<br>
<br>
Russ<br>
<br>
On 2013-10-07 5:48 AM, Matt Clinton wrote:<br>
</div>
<blockquote cite="mid:57509A6F-2977-4D76-83BB-17CB1BF6F6C3@65bit.com" type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
Hi,
<div><br>
</div>
<div>I am looking to do this for the Group part at the top of the
page and then I will want to do the same for the Page name. You
will find what I am working on at this link: <a moz-do-not-send="true" href="http://matt.impressedpaving.co.uk/">http://matt.impressedpaving.co.uk/</a></div>
<div><br>
</div>
<div>You will see where pmWiki is placing the if statement on the
web page, this is why I need to make it work in the template
file as this is not generated in the 'Edit' page content.</div>
<div><br>
<div apple-content-edited="true">
<div style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div>Regards,</div>
<div><br>
</div>
<div>Matt Clinton</div>
<div>65bit Software Limited</div>
<div><a moz-do-not-send="true" href="http://www.65bit.com/">www.65bit.com</a></div>
<div><br>
</div>
</div>
<br class="Apple-interchange-newline">
<br class="Apple-interchange-newline">
</div>
<br>
<div>
<div>On 7 Oct 2013, at 10:42, Simon <<a moz-do-not-send="true" href="mailto:nzskiwi@gmail.com">nzskiwi@gmail.com</a>>
wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div dir="ltr">I'm not exactly sure what you are trying to
achieve, but
<div>try something like
<div>
<div style="font-family:arial,sans-serif;font-size:13px">(:if
equal "{$Groupspaced}" "Easy Catalog":)</div>
<div style="font-family:arial,sans-serif;font-size:13px">[[{$Group}/]]</div>
<div style="font-family:arial,sans-serif;font-size:13px">(:else:)</div>
<div style="font-family:arial,sans-serif;font-size:13px">[[{$Groupspaced}/]]</div>
<div style="font-family:arial,sans-serif;font-size:13px">(:ifend:)</div>
</div>
</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On 7 October 2013 22:31, Matt
Clinton <span dir="ltr"><<a moz-do-not-send="true" href="mailto:mclinton@65bit.com" target="_blank">mclinton@65bit.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">Hi,
<div><br>
</div>
<div>So there is no way for me to do an if statement
to decide on which variable to use? Our product
does not have a space in the name which is why I
don't want it to show with spaces, however if I
change this to $Group variable it then messes it
up for other pages as they do not have spaces
anymore.</div>
<div><br>
</div>
<div>There must be a way to do this? Is it pmwiki's
security that is stopping me from executing this
in the tmpl file?</div>
<div>
<div class="im"><br>
<div>
<div style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-wrap:break-word;word-spacing:0px">
<div>Regards,</div>
<div><br>
</div>
<div>Matt Clinton</div>
<div>65bit Software Limited</div>
<div><a moz-do-not-send="true" href="http://www.65bit.com/" target="_blank">www.65bit.com</a></div>
<div><br>
</div>
</div>
<br>
<br>
</div>
<br>
</div>
<div>
<div>
<div class="h5">
<div>On 7 Oct 2013, at 10:22, Simon <<a moz-do-not-send="true" href="mailto:nzskiwi@gmail.com" target="_blank">nzskiwi@gmail.com</a>>
wrote:</div>
<br>
</div>
</div>
<blockquote type="cite">
<div>
<div class="h5">
<div dir="ltr">Only works within PmWiki
pages themselves.
<div>You can add this sort of markup in
your page, properly that is where it
should be (ie no content in template)</div>
</div>
</div>
</div>
<div class="gmail_extra">
<br>
<br>
<div class="gmail_quote">
<div>
<div class="h5">
On 7 October 2013 22:09, Matt Clinton
<span dir="ltr"><<a moz-do-not-send="true" href="mailto:mclinton@65bit.com" target="_blank">mclinton@65bit.com</a>></span>
wrote:<br>
</div>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px
#ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">
<div>
<div class="h5">Hi,
<div><br>
</div>
<div>I have been trying multiple
methods of doing this, php IF
statement, smarty IF statement
and now the pmWiki IF statement
used in the Cookbook. However it
seems like pmwiki just is not
executing my code but rather
displaying it on the web page?
If I put this in a separate file
and include this file, the
include line seems to look
commented out when inspecting
the element in a web browser.</div>
<div><br>
</div>
<div>Please find below the code I
am using in my 'skin.tmpl' file:</div>
<div><br>
</div>
</div>
</div>
<div>
<div>
<div class="h5">
<div><div
id="content-container"></div>
<div><span style="white-space:pre-wrap">
</span><div
id="content"></div>
<div><span style="white-space:pre-wrap">
</span><!--PageTitleGroupFmt--></div>
<div><span style="white-space:pre-wrap">
</span><p
class="grouptitle"></div>
<div><span style="white-space:pre-wrap">
</span>(:if equal
"{$Groupspaced}" "Easy
Catalog":)</div>
<div> <span style="white-space:pre-wrap">
</span><a
href='{$ScriptUrl}/{$Group}'
class="pagegroup">{$Group}</a></div>
<div><span style="white-space:pre-wrap">
</span>(:else:)</div>
<div>
<span style="white-space:pre-wrap">
</span><a
href='{$ScriptUrl}/{$Group}'
class="pagegroup">{$Groupspaced}</a></div>
<div><span style="white-space:pre-wrap">
</span>(:ifend:)</div>
<div><span style="white-space:pre-wrap">
</span></p></div>
<div><span style="white-space:pre-wrap">
</span><!--/PageTitleGroupFmt--></div>
<div><span style="white-space:pre-wrap">
</span></div></div>
<div></div></div>
<div><br>
</div>
<div>If anyone could shed some
light on this that would be
great, I have attached an
image of how it looks on the
web page.</div>
<div><br>
</div>
</div>
</div>
<div>
<div>
<div>
<div class="h5">
<div style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-wrap:break-word;word-spacing:0px">
<div>Regards,</div>
<div><br>
</div>
<div>Matt Clinton</div>
<div>65bit Software
Limited</div>
<div><a moz-do-not-send="true" href="http://www.65bit.com/" target="_blank">www.65bit.com</a></div>
<div><br>
</div>
</div>
</div>
</div>
<span><PastedGraphic-1.tiff></span><br>
<br>
</div>
<br>
</div>
</div>
</div>
<div class="im"><br>
_______________________________________________<br>
pmwiki-users mailing list<br>
<a moz-do-not-send="true" href="mailto:pmwiki-users@pmichaud.com" target="_blank">pmwiki-users@pmichaud.com</a><br>
<a moz-do-not-send="true" href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users" target="_blank">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a><br>
<br>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<span class="HOEnZb"><font color="#888888">
<div><br>
</div>
-- <br>
____<br>
<a moz-do-not-send="true" href="http://kiwiwiki.co.nz/" target="_blank">http://kiwiwiki.co.nz</a>
</font></span></div>
</blockquote>
</div>
<br>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
____<br>
<a moz-do-not-send="true" href="http://kiwiwiki.co.nz/">http://kiwiwiki.co.nz</a>
</div>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
pmwiki-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com</a>
<a class="moz-txt-link-freetext" href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a>
</pre>
</blockquote>
<br>
</div>
</blockquote></div><br></div></body></html>