[pmwiki-users] figuring out table of contents location

John Rankin john.rankin at affinity.co.nz
Thu Aug 2 22:16:54 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 ... use:
>>>
>>> $GroupHeaderFmt =
>>>   '(:toc-hide:)(:nl:)'
>>>   .'(:include {$Group}.GroupHeader:)(:nl:)';
>>>
>>> then a small change to pagetoc would work:
>>> >>
> <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.

Done -- the new version is available from Cookbook.PageTableOfContents.

The code checks to see if the page contains (:nogroupheader:) and does not
prepend $GroupHeaderFmt if this directive is present.

JR
-- 
John Rankin




More information about the pmwiki-users mailing list