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 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.

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:
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2008-11-11 - PeterThoeny
 
  • 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.