Is there a way to create a table of contents using [[toc]] that starts folded?
This will help
My test
for this to work you need to add the following to your custom CSS (you know how to do this?)
#toc #toc-action-bar{display:none} #toc .title{display:none;border:0px solid black;} #toc {border:0px solid black;margin:0 0 0 -1em;background-color:#ddf;}
A - S I M P L E - P L A N by ARTiZEN a startingpoint for simple wikidot solutions.
The collapsible block element worked better than fiddling with css to change the fold/unfold stuff. It looks cleaner as well. I just had to add some css to remove the toc.title and toc-action-bar. Thanks!
You don't need to implement it but tell me what you think of it
Thanks
BTW I can not see you source code
A - S I M P L E - P L A N by ARTiZEN a startingpoint for simple wikidot solutions.
I have no idea what CSI's are, but I don't want to create extra pages to be included for each TOC I need.
did you have a look at my testpage?
because the only thing you need to do since I made it into a CSI Cross Site Include is to include the following code where you wish to have your [[toc]]
[[include :mycsi:include:folded-toc
title_open=Table of contents|
title_closed=Close Table of contents]]
So no extra pages
You may change "Table of contents" & "Close Table of contents" to what you wish maybe another language…
A - S I M P L E - P L A N by ARTiZEN a startingpoint for simple wikidot solutions.
Yeah, I looked, but it wasn't what I wanted. I don't want to be reliant on another site either.
The http://csi.wikidot.com is a permanent site, with Wikidot CEO Pieter as the Master administrator. If Steven were to move his CSI there, you can rest assured that it will continue to work. Yes, you are reliant on another site, but at least it is the recommended site for all CSIs to be hosted at.
Or, if you really want to use your own site, just create a new page called include:folded-toc and add this code:
[[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]]
Then, on the page you want the TOC to be on, type this:
[[include include:folded-toc
title_open=Table of contents|
title_closed=Close Table of contents]]
You need to create the first page once only, then use the second codeblock for each TOC you have.
~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server | NEW: Wikiroo, backup tool (in development)
How would I edit my CSS? Where do I go? I really like what you did with this.
Have a look on our howto's : http://community.wikidot.com/system2:page-tags-howto/tag/css/category/howto
Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.
Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?