plugin:folded
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:folded [2016-05-25 09:37] – [Installation] 81.82.205.48 | plugin:folded [2024-04-20 12:00] (current) – 2001:1c04:2a92:5f00:4a0f:68f2:3f0c:20c6 | ||
---|---|---|---|
Line 6: | Line 6: | ||
email : freaks@dokuwiki.org | email : freaks@dokuwiki.org | ||
type : syntax | type : syntax | ||
- | lastupdate : 2016-04-26 | + | lastupdate : 2023-07-22 |
- | compatible : Detritus, Hrun, Ponder Stibbons, Binky, Weatherwax, Adora Belle, Angua | + | compatible : Kaos, Jack Jackrum, Igor, Hogfather, Greebo, Frusterick Manners, |
depends | depends | ||
conflicts | conflicts | ||
- | similar | + | similar |
- | tags : section, hide, collapsible | + | tags : section, hide, collapsible, fold |
downloadurl: | downloadurl: | ||
Line 17: | Line 17: | ||
bugtracker: | bugtracker: | ||
---- | ---- | ||
- | |||
- | ===== Download ===== | ||
- | |||
- | ^ Download | [[https:// | ||
===== Description ===== | ===== Description ===== | ||
Line 60: | Line 56: | ||
| Can contain block elements((like tables, lists, new paragraphs, included files, etc.)) | --- | :-) | | | Can contain block elements((like tables, lists, new paragraphs, included files, etc.)) | --- | :-) | | ||
| Can be used within a paragraph, table, list, etc. | :-) | --- | | | Can be used within a paragraph, table, list, etc. | :-) | --- | | ||
- | |||
- | You can see the plugin in action [[http:// | ||
^ Note: As of version 2005-09-02 the syntax has changed to allow linked titles to unfold and fold the section. The pipe char between title and text is mandatory. ^ | ^ Note: As of version 2005-09-02 the syntax has changed to allow linked titles to unfold and fold the section. The pipe char between title and text is mandatory. ^ | ||
Line 68: | Line 62: | ||
===== Installation ===== | ===== Installation ===== | ||
- | You can install | + | Search and install |
- | :!: If you install this plugin manually (by copying the directory to the plugins directory) you need to clear DokuWikis cache in order to make this plugin working. Otherwise it won't fold/unfold correctly. To clear the cache open -> modify any character -> undo -> save -> close the file < | + | :!: If you install this plugin manually (by copying the directory to the plugins directory) you need to clear DokuWikis cache in order to make this plugin working. Otherwise it won't fold/unfold correctly. To clear the cache open -> modify any character -> undo -> save -> close the file < |
Alternatively open the configuration page and save it. | Alternatively open the configuration page and save it. | ||
Line 106: | Line 100: | ||
**hide** --- the title tooltip to be used by folding links when the folded content is showing. If left empty the localised string will be used. | **hide** --- the title tooltip to be used by folding links when the folded content is showing. If left empty the localised string will be used. | ||
+ | |||
+ | **unfold_default** | ||
+ | |||
+ | **show_fold_unfold_all_button** --- if this option is activated, then a button will be displayed in the toolbar. If it is clicked, the button folds or unfolds all sections at once. | ||
+ | |||
+ | ===== Styling ===== | ||
+ | |||
+ | The look of the folded sections can be customized by adding CSS code to [[devel: | ||
+ | |||
+ | ==== Example 1 ==== | ||
+ | |||
+ | Adding this CSS code to '' | ||
+ | <code CSS> | ||
+ | .folder { | ||
+ | border: 2px solid black; | ||
+ | } | ||
+ | |||
+ | .folder.open { | ||
+ | border: 2px solid black; | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | The selector '' | ||
+ | |||
+ | ==== Example 2 ==== | ||
+ | |||
+ | Adding this CSS code to '' | ||
+ | <code CSS> | ||
+ | div.folded { | ||
+ | border: 2px solid black; | ||
+ | } | ||
+ | |||
+ | span.folded { | ||
+ | border: 2px solid black; | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | The selector '' | ||
===== Localization ===== | ===== Localization ===== | ||
Line 111: | Line 143: | ||
Please feel free to add the strings for your own language here and I will add them to the next release of the plugin. | Please feel free to add the strings for your own language here and I will add them to the next release of the plugin. | ||
- | ^ Language | + | ^ Language |
- | ^ English | + | ^ English |
- | ^ French | + | ^ French |
- | ^ German | + | ^ German |
- | ^ Korean | + | ^ Korean |
- | ^ Swedish | + | ^ Swedish |
- | ^ Italian | + | ^ Italian |
- | ^ Chinese | + | ^ Chinese |
- | ^ Danish | + | ^ Danish |
- | ^ Russian | + | ^ Russian |
- | | < | + | ^ Spanish |
+ | ^ Dutch | tonen | verbergen | ||
+ | ^ Norwegian | ||
+ | ^ Ukrainian | ||
+ | ^ Estonian | ||
+ | | Catalan | ||
There are also two strings used in the admin/ | There are also two strings used in the admin/ | ||
- | ^ Language ^ for hide string setting ^ for reveal string setting ^ | + | ^ Language |
- | | English | Folding tooltip to hide<br />(leave empty to use localized string) | Folding tooltip to reveal< | + | | English |
- | | Korean | + | | Korean |
- | |Chinese| 将工具条折叠来隐藏< | + | | Chinese |
- | |... | + | | Russian |
+ | | Ukrainian | ||
+ | | Estonian | ||
+ | | Catalan | ||
+ | | ... | [...] | ||
+ | |||
+ | ===== Nested Folds ===== | ||
+ | |||
+ | With the help of the [[plugin: | ||
+ | |||
+ | < | ||
+ | ++++ Outer Fold | | ||
+ | |||
+ | The trick is to wrap the inner fold: | ||
+ | |||
+ | < | ||
+ | |||
+ | ++++ Inner Fold | | ||
+ | |||
+ | This is the content of the inner fold. | ||
+ | |||
+ | ++++ | ||
+ | |||
+ | </ | ||
+ | |||
+ | ++++ | ||
+ | </ | ||
+ | |||
+ | Another method to achieve nesting is the [[plugin: | ||
===== Bugs / Feature Requests ===== | ===== Bugs / Feature Requests ===== | ||
Please report bugs or feature requests at the [[https:// | Please report bugs or feature requests at the [[https:// | ||
Line 141: | Line 206: | ||
* --- add Dutch and Russian language strings | * --- add Dutch and Russian language strings | ||
* --- add support for unknown render formats (uses standard render functions for output, no folding) | * --- add support for unknown render formats (uses standard render functions for output, no folding) | ||
- | * 2007-05-30 --- Language strings updated, **[[rc|RC2007-05-24]] & [[develonly]] only** | + | * 2007-05-30 --- Language strings updated, **RC2007-05-24 & [[devel:develonly]] only** |
* --- hide & hidelong strings added for all those languages missing them | * --- hide & hidelong strings added for all those languages missing them | ||
* --- Danish & Turkish strings added | * --- Danish & Turkish strings added | ||
Line 147: | Line 212: | ||
* 2007-01-24 --- Italian strings added, **darcs version only** | * 2007-01-24 --- Italian strings added, **darcs version only** | ||
* 2006-12-15 --- Swedish strings added, **darcs version only** | * 2006-12-15 --- Swedish strings added, **darcs version only** | ||
- | * 2006-12-10 --- Updated release files for DokuWwiki | + | * 2006-12-10 --- Updated release files for DokuWiki |
- | * --- [[develonly]] darcs version updated for removal of domLib functions (DW patched 2006-11-10) | + | * --- [[devel:develonly]] darcs version updated for removal of domLib functions (DW patched 2006-11-10) |
- | * 2006-05-22 --- [[develonly]] zh-tw strings added, **darcs version only** | + | * 2006-05-22 --- [[devel:develonly]] zh-tw strings added, **darcs version only** |
- | * 2006-05-04 --- [[develonly]] Major revision | + | * 2006-05-04 --- [[devel:develonly]] Major revision |
* JavaScript made unobtrusive | * JavaScript made unobtrusive | ||
* fix hidden folded sections for browsers without JavaScript and for printing | * fix hidden folded sections for browsers without JavaScript and for printing | ||
Line 159: | Line 224: | ||
* 2005-12-31 --- package update with language strings for cs (Czech), ja (Japanese), ko (Korean), po (Polish) & zh (Chinese). No source changes. | * 2005-12-31 --- package update with language strings for cs (Czech), ja (Japanese), ko (Korean), po (Polish) & zh (Chinese). No source changes. | ||
* 2005-09-18 --- source updated and initial release on darcs (see link above) | * 2005-09-18 --- source updated and initial release on darcs (see link above) | ||
+ | |||
+ | ===== Old Releases ===== | ||
+ | |||
+ | Previous releases can be found on [[https:// | ||
===== Requested Features / To Do ===== | ===== Requested Features / To Do ===== | ||
Line 176: | Line 245: | ||
===== Discussion ===== | ===== Discussion ===== | ||
- | Please see the separate [[plugin: | + | Please see the separate [[plugin: |
plugin/folded.1464161863.txt.gz · Last modified: 2016-05-25 09:37 by 81.82.205.48