• 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

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

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.

Test:

%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

ItemTemplate
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
Component

Priority Enhancement
CurrentState Closed
WaitingFor

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-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback