[pmwiki-users] page toc enhancement: toc-hide
John Rankin
john.rankin at affinity.co.nz
Wed Mar 29 22:03:46 CST 2006
On Thursday, 30 March 2006 2:36 PM, John Rankin <john.rankin at affinity.co.nz> wrote:
>On Tuesday, 21 March 2006 9:50 PM, noskule at gmx.net wrote:
>>I checked it out see:
>>http://www.netstreams.org/pmwiki_clean/index.php?n=PmWiki.DocumentationIndex
>>
>>there seams a problem that it works, exept of the remote and target page
>>are the same.
>>* If you go to DocumentationIndex no toc will show up in the sidebar
>>* if you go to any other page the tox will be displayed
>>grz nos
>
>This behaviour is (at the moment) by design.
>The RemoteTableOfContents function contains:
>
>if ($tocname==$pagename) return '';
>
<snip>
Download the latest version from
http://www.pmwiki.org/wiki/Cookbook/PageTableOfContents
and set (:toc-page Documentation Index self=1:)
That should fix it.
>>
>>John Rankin schrieb:
>>
>>>The latest version of Cookbook.PageTableOfContents adds a
>>>(:toc-hide:) directive. This allows authors to define a
>>>"remote table of contents" while omitting a toc from the
>>>remote page.
>
--
JR
--
John Rankin
More information about the pmwiki-users
mailing list