Tags:
create new tag
view all tags

Question

I've been trying without luck to add a TOC for the current page into WebLeftBar (specifically inside a TWISTY in WebLeftBar, but it doesn't want to work outside of a TWISTY either). The TOC simply doesn't appear (no title if I give a title, for example). I've tried several forms, with the most promising (but still not working) being:

   %TOC{"%INCLUDINGTOPIC%" depth="2" title="Contents"}%
and, with TWISTY:
  %TWISTY{showlink="<b>Contents</b>" hidelink="<b>Contents</b>"}%
     %TOC{"%INCLUDINGTOPIC%" depth="2"}%
  %ENDTWISTY%
Does anyone know how/if this can be done? THX

Environment

TWiki version: TWikiRelease04x01x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: CentOS4
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories:  

-- SteveWampler - 07 May 2007

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

Try %BASETOPIC% instead of %INCLUDINGTOPIC%.

-- PeterThoeny - 02 Jul 2007

This worked for me.

%TWISTY{mode="div" showlink="Show Contents..." hidelink="Hide Contents"
showimgleft="%ICONURLPATH{toggleopen}%" 
hideimgleft="%ICONURLPATH{toggleclose}%"}%
   %TOC{"%WEB%.%BASETOPIC%" depth="2"}%
%ENDTWISTY%

-- RobKirk - 14 Aug 2007

Change status to:
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2007-08-14 - RobKirk
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.