By michal frackowiak
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.
Thanks to tsangk for this great snippet: conditional-blocks
text above inserted with:
[[include :snippets:if START |unique=1|type=equal|var1=%%name%%|var2=conditional-blocks]]
**##red|Thanks to tsangk for this great snippet:##** [[[code:conditional-blocks]]]
[[include :snippets:if END]]
Other snippets posted by michal frackowiak
Zoho Writer - 16 Feb 2012 01:57
Zoho Sheet - 16 Feb 2012 01:56
Zoho Show - 16 Feb 2012 01:55
Zoho Polls - 16 Feb 2012 01:53
WoW Tooltips - 16 Feb 2012 01:52
Widgetbox Panel - 16 Feb 2012 01:52
Video from Revver - 16 Feb 2012 01:50
Todo List - 16 Feb 2012 01:48
Tabs - 16 Feb 2012 01:45
Standalone Page Buttons - 16 Feb 2012 01:44
Social Bookmarking - 16 Feb 2012 01:42
Simple Gallery - 16 Feb 2012 01:41
Remember The Milk Todo - 16 Feb 2012 01:39
Recent Changes (mini) - 16 Feb 2012 01:36
Rating Summary - 16 Feb 2012 01:35
Quimble Poll - 16 Feb 2012 01:33
Quikmaps Maps - 16 Feb 2012 01:33
Photobucket Widget - 16 Feb 2012 01:29
Page Previews (Snap.com) - 16 Feb 2012 01:29
Pabpixies Gadgets - 16 Feb 2012 01:28
Rate this solution
If you think this solution is useful — rate it up!






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.
Rob Elliott - Strathpeffer, Scotland - Wikidot first line support & community admin team.
Strathview ~ Wikidot-based wikis, websites & intranets and online database development. For community groups, villages, charities, business and government.
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 (Open source), Wikidot-Handbook.
Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?
How do I create a menu like that on this site ( http://manualmarc21.wikidot.com/ )
I had a look on the nav:side page of this site:
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 ?
Stop it Collapsing when I navigate to a page that is not in the foldable list container. Is that possible at all?
Pleas e- an example - I do not understand the question!
I made a test on my old pug-at.wikidot.com
Yes - this is always going back to the standard - if you click on a link outside the sub menu
If yo click on a link INSIDE ths sub menu - than the nav:side folder "holds open"…
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 ?