Module with table of content Posted by Stefan Wüst 05 Sep 2005 19:43 UTC Hi! I want a table of contents "{maketoc}" from the current Wiki side in a module (SideBar)! thx!
Posted by Gary Cunningham-Lee 06 Sep 2005 02:58 UTC > 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
Posted by Stefan Wüst 07 Sep 2005 07:06 UTC Hi Gary thx for help! But I think, it should be possible "automatically" like maketoc. ...moore ideas? smarty?