CSI folded TOC
nav_first.pngFirst: package:1
Wikidot per-site help
Edited: 08 Nov 2009 12:06 by: pieterh
Comments: 0
nav_prev.pngPrevious: package:16
Wikidot Community Posting Guidelines
Edited: 28 Nov 2009 14:46 by: pieterh
Comments: 3
Last: package:49
Advanced Search
Edited: 01 May 2012 12:30 by: tsangk
Comments: 68
Next: package:18
Mini Comments
Edited: 15 Dec 2009 13:00 by: pieterh
Comments: 17

CSI folded TOC
Package submitted by Steven Heynderickx
02 Dec 2009 17:31

rating: 0+x

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)


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}
[[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}"]]

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;"]]


Comments: 0

Add a New Comment
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License