• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item7356: Add style parameter to TOC variable

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Enhancement Closed   major 6.0.0

Edit Form Data

Reported By:
Applies To:
Current State:
Waiting For:
Target Release:
Released In:


Sometimes it is useful to apply a style to the TOC, such as to float it to the right. Currently one must enclose the TOC in a div, which gets often eaten by the WYSIWYG editor.

I think this is a small "no-brainer" enhancement that is safe and can go into TWiki-6.0.0.


%TOC{ title="Floating TOC" style="float:right; border: dotted gray 2px; padding: 0.2em 1em;" }%
%TOC{ title="Default, no style TOC" }%

Renders as:

First heading

Blah blah.

Second heading

Blah blah.

Third heading

Blah blah.

-- TWiki:Main/PeterThoeny - 2013-10-01

Summary Add style parameter to TOC variable
ReportedBy TWiki:Main.PeterThoeny
Codebase ~twiki4
SVN Range TWiki-6.0.0-trunk, Fri, 20 Sep 2013, build 26417
AppliesTo Engine

Priority Enhancement
CurrentState Closed

Checkins TWikirev:26442 TWikirev:26443 TWikirev:26444
TargetRelease major
ReleasedIn 6.0.0
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r6 - 2013-10-15 - PeterThoeny
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback