Tags:
create new tag
, view all tags

Question

Twiki currently has HierarchicalNavigation function which lists all children topics of a main topic.

Can this be further extended to create a table of contents based on headings for all the children topics listed?

Environment

TWiki version: TWikiRelease04x01x01
TWiki plugins: DefaultPlugin,TWiki-4.1.1
Server OS:  
Web server:  
Perl version:  
Client OS: MS Windows 2003
Web Browser:  
Categories: Missing functionality

-- TWikiGuest - 10 Nov 2008

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

You can do a VarSEARCH for all children of a topic, with the FormattedSearch stating a VarTOC2.

Untested SEARCH format example:
format="$percntTOC{ '$topic' web='$web' title='Contents of [[$web.$topic][$topic]]:'}$percnt"

-- PeterThoeny - 10 Nov 2008

Thanks, tried with escaped quotes and it worked: format=""

-- TWikiGuest - 11 Nov 2008

Glad it worked out. Closing question...

-- PeterThoeny - 11 Nov 2008

 
Change status to:
Topic revision: r4 - 2008-11-11 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.