We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You need to opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
You are here: TWiki> Support Web>SelectableTOCLevel (30 Aug 2003, PeterThoeny)
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 - 30 Aug 2003 - 00:37:44 - PeterThoeny
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback