[pmwiki-users] figuring out table of contents location
John Rankin
john.rankin at affinity.co.nz
Thu Aug 2 04:30:45 CDT 2012
> On Jul 30, 2012 3:33 AM, "John Rankin" <john.rankin at affinity.co.nz> wrote:
<snip>
>> > I use a version of Cookbook:AllGroupHeader in local/config.php.
>>
>> OK. If you can change
>>
>> $GroupHeaderFmt =
>> '(:include {$SiteGroup}.AllGroupHeader:)(:nl:)'
>> .'(:include {$Group}.GroupHeader:)(:nl:)';
>>
>> and instead use:
>>
>> $GroupHeaderFmt =
>> '(:toc-hide:)(:nl:)'
>> .'(:include {$Group}.GroupHeader:)(:nl:)';
>>
>> then a small change to pagetoc would work:
>> >>
>> >> function RemoteTableOfContents($pagename,$ref,$self=0) {
>> >> global $TocHeaderFmt,$RemoteTocFmt;
>> >>
>> >> global $GroupHeaderFmt;
>> >>
>> >> ...
>> >> $toctext= $GroupHeaderFmt . @$tocpage['text'];
>> >>
>> >> ...
>> >> }
>> >>
<snip>
>
> I'll give it a go when I return from vacation. Thanks, John.
>
OK -- I'll upload a new version of the recipe to make the change to the
RemoteTableOfContents function.
JR
--
John Rankin
More information about the pmwiki-users
mailing list