[pmwiki-users] figuring out table of contents location

tamouse mailing lists tamouse.lists at gmail.com
Sat Jul 21 13:40:07 CDT 2012


On Sat, Jul 21, 2012 at 12:52 PM, Petko Yotov <5ko at 5ko.fr> wrote:
> tamouse mailing lists writes:
>>
>> What I want is for the table of contents for the page to appear in the
>> side bar rather than in the wikitext area. The only one I could manage
>> to make do this is HandyToc, but it has the disadvantage (for me) of
>> requiring javascript.
>
>
> AutoTOC allows that, but it only works in browsers with JavaScript enabled.
> See as an example http://www.pmwiki.org/wiki/Test/AutoTOC where the table of
> contents is in the top of the sidebar. To set this, we have this line in
> local/Test.AutoTOC.php :
>
>  $AutoTocPosition = "wikileft";
>
> where "wikileft" is the id attribute of the HTML element where I want the
> TOC to appear. From your code, it may be "pagetoc". (I haven't tested if it
> will work with the HTML5 tag <aside> but it should.)
>
> Petko

I looked at AutoTOC as well -- it doesn't seem to provide additional
capability to HandyToc, and what I was hoping to get away from was the
JS requirement.



More information about the pmwiki-users mailing list