CSI folded TOC
By default a table of contents is visible if you use it. This CSI keeps it closed and you can enter titles for the two states its in (open closed)
Instructions
To install this package in your site, create/edit these pages with the following content:
This page | Contains this line |
---|---|
include:folded-toc | [[include :csi:include:folded-toc]] |
This is the code of the CSI
[[module CSS]]
.foldedtoc #toc #toc-action-bar{display:none}
.foldedtoc #toc .title{display:none;border:0px solid black;}
.foldedtoc #toc {border:0px solid black;margin:0 0 0 -0,9em;background-color:#ddf;}
.foldedtoc .collapsible-block-link {text-decoration:none}
[[/module]]
[[div class="foldedtoc" style="border:1px grey dashed;float:left;background-color:#ddf;margin:10px"]]
[[div style="margin:10px"]]
[[collapsible show="{$title_open}" hide="{$title_closed}"]]
[[toc]]
[[/collapsible]]
[[/div]]
[[/div]]
To embed a folded TOC include this
[[include :csi:include:folded-toc
title_open=Open table of contents|
title_closed=Close Table of contents]]
You can adjust the titles off course!
Include files
[[table class="{$class}" style="border-collapse: collapse; width:100%; margin-bottom: 10px; font-weight:bold; background-color:#eeeeee;"]]
[[/table]]
Comments: 0
page revision: 3, last edited: 25 Feb 2010 21:16