plugin:foldablelist
Table of Contents
foldablelist Plugin
Compatible with DokuWiki
- 2025-05-14 "Librarian" unknown
- 2024-02-06 "Kaos" yes
- 2023-04-04 "Jack Jackrum" yes
- 2022-07-31 "Igor" yes
Installation
Install the plugin using the Plugin Manager and the download URL above, which points to latest version of the plugin. Refer to Plugins on how to install plugins manually.
Examples/Usage
- Wrap list with
<foldablelist>and</foldablelist> - You can use any markup inside
- Lists generated by other plugins (like the tag plugin or discussion plugin) will also work
Configuration and Settings
Can be done via config manager (log in as admin of course)
collapse_after: number of items to show alwayscollapse_level: depth of nested list to show alwaysbutton_css: change appearance and position of the button via CSSbutton_up_value: change content of button to collapsebutton_down_value: change content of button to unfold
Configuration for collapsing can be overwritten for each instance. The following would collapse each list (including nested lists) after 3 items and 2 levels depth:
<foldablelist collapse_after=3&collapse_level=2>
* item 1
* item 2
* item 3
* item 3.1
* item 3.2
* item 3.3
* item 3.4 --> gets hidden because collapse_after is greater than 3
* item 3.5 --> gets hidden because collapse_after is greater than 3
* item 3.5.1 --> gets hidden because collapse_level is deeper than 2
* item 3.5.2 --> gets hidden because collapse_level is deeper than 2
* item 3.5.3 --> gets hidden because collapse_level is deeper than 2
* item 3.5.4 --> gets hidden because collapse_level is deeper than 2
* item 4 --> gets hidden because collapse_after is greater than 3
* item 5 --> gets hidden because collapse_after is greater than 3
</foldablelist>
beware the syntax when using both settings inline: settings MUST be joined by ampersand '&', no blank spaces allowed !!
Set an option to zero (0) to disable it.
Change Log
- Merge pull request #12 from medmen/combine-collapse-after-level-and-i… (2024-09-24 22:39)
- found better function to check if a string represents a positive int (2024-09-24 22:37)
- Merge pull request #11 from medmen/combine-collapse-after-level-and-i… (2024-09-02 21:02)
- updating plugin release date (2024-09-02 21:01)
- Merge pull request #10 from medmen/combine-collapse-after-level-and-i… (2024-09-01 12:33)
- resolving issue #9 (2024-08-26 22:29)
- resolving issue #9 (2024-08-26 22:22)
- update language and metadata (2024-06-11 22:26)
Known Bugs and Issues
Please report bugs and issues at: https://github.com/medmen/dokuwiki-plugin-foldablelist/issues
plugin/foldablelist.txt · Last modified: by med-men

