CSI Table of content
nav_first.pngFirst: thread:375
Developing a module for Wikidot
Edited: 08 Mar 2011 18:27 by: North
Comments: 0
Tags:
nav_prev.pngPrevious: thread:186

Edited: 05 Dec 2009 02:39 by: Ss_Sins_Insight
Comments: 2
Tags:
Last: thread:31
Black belt project
Edited: 06 Sep 2009 11:06 by: pieterh
Comments: 10
Tags:
nav_last.png
Next: thread:161
CSI module tag indicator
Edited: 30 Nov 2009 16:33 by: Steven Heynderickx
Comments: 11
Tags: csitagindicator
nav_next.png

Steven HeynderickxSteven Heynderickx wrote on 24 Nov 2009 16:16

Problem with [[toc]] is:

  • default title = English, but can be altered using attribute "title="
  • it's always open by default

Problem with CSS solved:

  • no embed of CSS possible for now The [[module css]] makes embedding of CSS inside CSI possible. Thanks Wikidot!

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 without "@ @"

@@[[include :mycsi:include:folded-toc
title_open=Open table of contents|
title_closed=Close Table of contents]]

You can adjust the titles off course!

Start a new sub-thread

Comments: 3

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