1foldablelist Plugin for DokuWiki
3collapse a list after a configurable number of items
5Please refer to http://www.dokuwiki.org/plugins for additional info
6on how to install plugins in DokuWiki.
9Copyright (C) medmen <email@example.com>
11This program is free software; you can redistribute it and/or modify
12it under the terms of the GNU General Public License as published by
13the Free Software Foundation; version 2 of the License
15This program is distributed in the hope that it will be useful,
16but WITHOUT ANY WARRANTY; without even the implied warranty of
17MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18GNU General Public License for more details.
20See the COPYING file in your DokuWiki folder for details
2plugin that makes an unordered list invisible after n items
4## how to use?
5simply wrap an unordered list into the tags
9 * list item 1
10 * list item 2
11 * list item 3
14this list can be generated via markup or dokuwiki plugins like the tag-plugin.
16#### Advanced use
22uses the tag plugin (topic component) to generate the list from all pages in the namespace ns1/sub-ns tagged with "tag"
25this plugin can be configured via dokuwikis admin config page
26So far there is only 1 item to configure:
28`collapse_after: 5` the number of list items to be displayed before hiding the rest of the list, default value: 5
30#### new in 2020:
31you can pass the config to every single instance:
35 * list item 1
36 * list item 2
37 * list item 3
40this will show only the first 2 items
42## why use?
43people like to put "important stuff" on startpage and the department i work in is not different.
44Things considered "important" get written on startpage, usually as lists (upcoming meetings, changes in workflow, new orders by the boss ...)
45and each list naturally grows as new items are added on top but older items remain important enough to keep them..
47Our startpage has grown to a length of 4 screen-pages by now because of that, so sooner
48or later my boss asked me to reduce the visible number of items on those lists to
49a certain minimum.
51This plugin adresses the issue in a quick and cosmetic way:
52all information is still available, but (hopefully) less important stuff gets hidden by default.
54## great but i miss feature X
55Feel free to improve, share and debug!
57* send me feature requests
58* found a bug? please report at github
59* you are a programmer and want to improve the plugin?
60Go ahead --> fork, rewrite, enhance and extend..