Loading...
 
Skip to main content

Features / Usability


Module with table of content

Hi!

I want a table of contents "{maketoc}" from the current Wiki side in a module (SideBar)!

thx!

> Hi!
>
> I want a table of contents "{maketoc}" from the current Wiki side in a module (SideBar)!
>
> thx!

Sorry, maketoc just works within a page — it's a wiki plugin, after all. Even if you could save the output of maketoc, by copying the HTML code produced and prepending the page's URL to each anchor link, it won't work from a module because maketoc's links are created dynamically, and the anchor links will be different the next time the page is displayed.

I believe there is an "anchor" wiki plugin now, so you could make a module that had a list basically like what maketoc produces, and your links could be to the named anchors you put in the wiki page with the plugin. Not as automatic as maketoc, but the only way I know to have links that work every time.

-- Gary


Hi Gary

thx for help! But I think, it should be possible "automatically" like maketoc.

...moore ideas? smarty?