plugin:sectiontoggle
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
plugin:sectiontoggle [2019-07-29 04:07] – [Examples/Usage] turnermm | plugin:sectiontoggle [2019-07-30 02:10] – [Override] turnermm | ||
---|---|---|---|
Line 5: | Line 5: | ||
author | author | ||
email : turnermm02@shaw.ca | email : turnermm02@shaw.ca | ||
- | type : syntax | + | type : |
lastupdate : 2019-07-28 | lastupdate : 2019-07-28 | ||
compatible : 2012-10-13 "Adora Belle", | compatible : 2012-10-13 "Adora Belle", | ||
Line 23: | Line 23: | ||
===== Installation ===== | ===== Installation ===== | ||
- | :!: **Requirements: | ||
Search and install the plugin using the [[plugin: | Search and install the plugin using the [[plugin: | ||
Line 30: | Line 29: | ||
===== Examples/ | ===== Examples/ | ||
- | This plugin converts DokuWiki headers into toggles which open and close the sections immediately below them. The plugin has undergone a number of revisions and in its current form, it will work out of the box with any template without any need for configuration. However, configuring the plugin as described in the sections below __may__ be useful for efficiency.((The emphasis here is on may, i.e. possibly if you have large pages with many headers.)) | + | This plugin converts DokuWiki headers into toggles which open and close the sections immediately below them. |
+ | ==== To Configure | ||
+ | The plugin will work out of the box with any template without any need for configuration. However, configuring the plugin as described in the section on [[# | ||
- | When installed, the sections will initially be closed. Clicking on a header will open the section immediately below the header. Clicking on it again will close the section. Using the two buttons described [[# | + | ==== To Toggle or Not to Toggle ==== |
+ | === Toggling === | ||
+ | |||
+ | When installed, the sections will initially be closed. Clicking on a header will open the section immediately below the header. Clicking on it again will close the section. Using the two buttons described [[# | ||
+ | |||
+ | === Disabling Toggles === | ||
+ | |||
+ | Headers without any text content below them will not be active and will not show the right arrow icon. They will simply be standard headers and not toggles. | ||
{{ https:// | {{ https:// | ||
Line 46: | Line 54: | ||
These buttons will be hidden if toggling is disabled, as described below under Configuration. | These buttons will be hidden if toggling is disabled, as described below under Configuration. | ||
- | ==== Override ==== | ||
- | This feature enables you to create a container '' | ||
- | < | ||
- | ~~stoggle_openDIV~~ | ||
- | ~~stoggle_closeDIV~~ | ||
- | </ | ||
- | You place the '' | ||
- | |||
===== Configuration ===== | ===== Configuration ===== |
plugin/sectiontoggle.txt · Last modified: 2023-12-31 18:13 by 24.78.8.122