Tags:
create new tag
, view all tags

Question

Currently,

%TOC%
will generate a great table of contents from headings of all levels.

This is an enhancement idea to allow TOC to only display "depth" of level X. This is because a TOC can get extremely long with some documents (up to two pages, on some of mine).

Suggested usage:

%TOC%
will display all levels of heading (just like current behavior).

%TOC{'level=3'}%
will display TOC using headings level ---+ through ---+++ (1-3). Other headings below this will not be part of the TOC.

..etc..

Environment

TWiki version: TWikiRelease01Feb2003
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: any
Web server: any
Perl version: any
Client OS: any
Web Browser: any

-- JonathanCline - 30 Aug 2003

Answer

This is already possible with %TOC{ depth="3" }%. See all options in TWikiVariables.

-- PeterThoeny - 30 Aug 2003

Topic revision: r2 - 2003-08-30 - 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.