[pmwiki-users] page toc enhancement: toc-hide

noskule noskule at gmx.net
Mon Apr 3 12:45:02 CDT 2006


John Rankin schrieb:

>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.
>>>>        
>>>>
hi john
I did check it out, it works in general but not with a include 
directive, see:
http://www.netstreams.org/netstreams/pmwiki/index.php/Pagetoc/PageWithInclude

the css of the right sidebar (where the included toc is) isnt finish, so 
you may have to scroll to the right .. . ..
grz nos













More information about the pmwiki-users mailing list