Description
Do you like a foldable list from My Account or Site Manager? Create your own!
The trick is to embed the list within the foldable-list-container class div like below. Use your own links within the list!
Code
[[div class="foldable-list-container"]]
* foldable example
* [[[system: Recent changes]]]
* [[[system: List all pages | List all solutions]]]
* [[[system: Page tags | Browse by tags]]]
* and here are some "links" shown:
* [*http://www.wikidot.com/doc Documentation]
* [*http://www.wikidot.com/doc:wiki-syntax wiki-syntax]
* [*http://community.wikidot.com/howto:howto-list How-To's]
* [*http://snippets.wikidot.com Solutions]
* [*http://www.wikidot.com wikidot]
* [*http://community.wikidot.com/ Community]
* [*http://community.wikidot.com/forum:start Community Forum]
[[/div]]
In action
See the example on the page below:
NOTE: you can only use this in the side bar element.
Rate this solution
If you think this solution is useful — rate it up! Or dump it otherwise.






Can it be made available in the content area too?
Yes, see collapsible-text-block
Thank you for this post!
How can I indent the list elements or put bullets in front of them? I'd like to make the unfolded list more visible for visitors.
One idea would be to simply write "-" but it doesn't look very nice.
You could try the alt-code ALT+0149.
It makes a • which could be a good compromise between a dash and something more complicated.
Is it possible to nest the folding? If yes, then how?
I'm not sure what I'm doing wrong, but I just can't get this to work for me. I've checked my code over for errors and I've made sure all of my links are correct, but it's still giving me trouble. It's disappointing, as this is just what I need to put the finishing touches on my sidebar. If anyone could figure out what I might be doing wrong, that would be greatly appreciated. Here's my code:
[[div class="foldable-list-container"]]
* Help:
* [[[how-to-s|How To's]]]
* [[[templates|Templates]]]
* [[[help|Links]]]
* Site Info:
* [[[system: members |Site Members]]]
* [[[system: recent changes|Recent Changes]]]
* [[[system: list all pages|List All Pages]]]
* [[[system: page tags|List All Tags]]]
[[/div]]
Thanks!
It doesn't look like you've indented the lines under Help: and Site Info: so put a couple of spaces before the * on those lines and see if that solves it. Without that you just get a non-folding list.
this is a great tip
i have 2 problems:
1) when the page is refreshed or changes, the foldable list is displayed quickly as unfolded, this causes everything to change position for a second before it folds up again. is there any way to make this not occur? that would be sweet
2) when i look at the side-bar actual page (like, go to list all pages, and click on side bar), the list has bullets in it, but on the sidebar, it doesnt have any bullets. im guessing this is controlled through css, and have been messing around trying to fix it without any luck. any ideas?
Thanks!!
Folks, I have searched a lot and not able to add page links to this list. I am really new to the platform and not very technical, can you please help me with this.
I want to give a fold-able list of pages in the side bar. Thanks for your time.
1. I insert here the sopurce code of one of nav:side bar pages ( http://pug-at.wikidot.com/nav:side )
2. I chane the shown example to have a standaard link in the foldable list
Hope this helps ?
Service is my success. My webtips:www.blender.org, www.zusi.de (Demo-Video)
Wollen Sie Wikidot helfen im deutschen » Handbuch ?