DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:foldablelist

foldablelist Plugin

Compatible with DokuWiki

  • 2022-07-31 "Igor" unknown
  • 2020-07-29 "Hogfather" yes
  • 2018-04-22 "Greebo" yes
  • 2017-02-19 "Frusterick Manners" yes

plugin

Last updated on
2022-06-06
Provides
Syntax
Repository
Source

Tagged with fold, hide, list

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 always
  • button_css: change appearance and position of the button via CSS
  • button_up_value: change content of button to collapse
  • button_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:

<foldablelist collapse_after=3>
  * item 1
  * item 2
  * item 3
      * item 3.1
      * item 3.2
      * item 3.3
      * item 3.4
      * item 3.5
  * item 4
  * item 5
</foldablelist>

Change Log

Known Bugs and Issues

plugin/foldablelist.txt · Last modified: 2022-06-06 17:28 by med-men

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki