<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Petko,<div><br></div><div>Worked like a dream and was easier to set up than anything else! Thanks :)</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 8 Oct 2013, at 10:16, Matt Clinton <<a href="mailto:mclinton@65bit.com">mclinton@65bit.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=us-ascii"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Petko,<div><br></div><div>Thanks, I am definitely going to give this a go. The AllGroupHeader did not do what I wanted it to do as it was giving me Site and then All Group Header for every page instead of that pages group and title.</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 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 21:02, Petko Yotov <5ko@<a href="http://5ko.fr/">5ko.fr</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Here is a piece of code that I use for a similar need. In config.php:<br><br> function GroupTitle($group, $slash=0){<br>   global $AsSpacedFunction;<br>   $title = PHSC(PageTextVar("$group.GroupConfig", 'GroupTitle'));<br>   if (! $title>'') $title = $AsSpacedFunction($group);<br>   return $slash ? "$title /" : $title;<br> }<br> $FmtPV['$GroupTitle'] = 'GroupTitle($group)';<br> $FmtPV['$GroupTitleTMPL'] = 'GroupTitle($group, 1)';<br><br>In a wiki page [[EasyCatalog.GroupConfig]] or [[OtherGroup.GroupConfig]] I have this code:<br><br> GroupTitle:EasyCatalog (or any other group title I don't want "spaced")<br><br>In the skin template, I use $GroupTitle or $GroupTitleTMPL where I want the group title displayed (and $Group where I link to the group unspaced) :<br><br> <title>$WikiTitle | {$GroupTitle} / {$Title} $ActionTitle</title><br> <a href='{$ScriptUrl}/{$Group}'>{$GroupTitleTMPL}</a><br><br>In a [[SideBar]] or any other wiki page, I can use {*$GroupTitle}.<br><br>This way, if there is a page EasyCatalog.GroupConfig with the page text variable GroupTitle, it will be used as a group title in the skin template. If there isn't such a page or such a variable, the skin will show the "group spaced" text as title.<br><br>Petko<br><br>P.S. $GroupTitleTMPL only has a slash appended - not sure why I needed that.<br><br>Matt Clinton writes:<br><blockquote type="cite">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: <URL:http://<a href="http://impressedpaving.co.uk/matt/index.php?n=ODBCDataProvider.ODBCDataProviderNotLoadingOnMacintosh">impressedpaving.co.uk/matt/index.php?n=ODBCDataProvider.ODBCDataProviderNotLoadingOnMacintosh</a>><a href="http://impressedpaving.co.uk/matt/index.php?n=ODBCDataProvider.ODBCDataProviderNotLoadingOnMacintosh">http://impressedpaving.co.uk/matt/index.php?n=ODBCDataProvider.ODBCDataProviderNotLoadingOnMacintosh</a><br><br><br>But if I was to do this, the group EasyCatalog then ends up as Easy Catalog.<br><br><br>Which is why I would love to be able to use an IF statement in my tmpl file.<br><br></blockquote><br>_______________________________________________<br>pmwiki-users mailing list<br><a href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com</a><br><a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a><br></blockquote></div><br></div></div>_______________________________________________<br>pmwiki-users mailing list<br><a href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com</a><br>http://www.pmichaud.com/mailman/listinfo/pmwiki-users<br></blockquote></div><br></div></body></html>