Modify ↓
Opened 18 years ago
Last modified 17 years ago
#1317 assigned enhancement
Disable Toc in other modes
Reported by: | Owned by: | osimons | |
---|---|---|---|
Priority: | normal | Component: | TocMacro |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.10 |
Description
It would be usefull if you could tell the toc menu to disable when other output formats are being used.
For example use with
http://www.trac-hacks.org/wiki/CombineWikiPlugin
Causes the Toc to appear on every single page....
Attachments (0)
Change History (1)
comment:1 Changed 17 years ago by
Owner: | changed from Alec Thomas to osimons |
---|---|
Status: | new → assigned |
Note: See
TracTickets for help on using
tickets.
Not sure about the history of this, but the 0.11 version includes the following code:
It is then basically for the CombineWikiPlugin and similar to 'flip the switch' in the formatter, and plugins like TocMacro will (should) then respect this and not show floating menus. Feel free to file a ticket with that plugin asking it to set the required property if it is missing.
Now, re-reading the code I just notice that the macro will actually disable an inline toc as well - which it shouldn't. A variation of this would be that the macro does not bail out, but instead sets the inline option implicitly so the toc renders once but in inline mode. Any preference?