|
Cookbook /
QuickPageTableOfContentsSummary: Adds a dropdown clickable table of contents to a page - client side processing
Version: 1.12, September 4, 2006
Status: Stable
Prerequisites: pmwiki 2.1 and above
Maintainer: Henrik Bechmann (henrik [period] bechmann [snail] sympatico [period] ca)
Download: quicktoc.zipΔ
Questions answered by this recipe (click to open) Quick Page Table of ContentsScanning... How to add an automatic table of contents to a wiki page. DescriptionThis is DHTML (css/html/javascript). The author adds Example:
Quick Page Table of Contents as first presented to the user: ![]()
Quick Page Table of Contents after the user clicks on the bar: ![]()
Try it yourself here NotesInstallation
UsageAdd the directive Release NotesVersion 1.12 Fourth release, September 4, 2006. Modified javascript and css to remove need to specify url for dynamic change to down/right arrow on open/close. Version 1.11 Third release, August 31, 2006. Repackaged the PmWiki way, much simplifying installation (thanks to Patrick Michaud for direction on this). Added default font size of 9pt. Version 1.1 Second release, August 30, 2006: menu drops down over text, and is dismissed when clicked anywhere. Top level headings are bolded. TOC title includes "click to open" when closed, and "click to close" when open. Version 1.0 First release, June 10, 2006 CommentsI installed quicktoc (Sept-06) in PmWiki2.1.26 and seem to have one anomaly. On this demo page, the dropdown appears as a one-line option with Quick Page Table of Contents followed by (Click to Open) in a box with a grey background. On my wiki, the quicktoc function operates as expected, but the dropdown box appears on 2 lines. On the first line, the (Click to Open) option appears right justified on the upper line, with a white background, while the Quick Page Table of Contents appears on the lower line, left justifed and with a grey background. Formatting is the same using Explorer or Firefox Des September 16, 2006, at 03:07 PM
Also, after comparing the operation on my test page http://www.secretscotland.org.uk/index.php/Secrets/AABatteriesClyde with this page, I've also noticed that the vertical aligment of the header content differs AND this demo page does not display the right or down arrow in the header dropdown, but it does appear on my own page. Des September 16, 2006, at 03:14 PM See Also
ContributorsUser notes? : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki. |