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-28 17:19] – [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-22 | + | lastupdate : 2019-07-28 |
compatible : 2012-10-13 "Adora Belle", | compatible : 2012-10-13 "Adora Belle", | ||
depends | depends | ||
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 ===== | ||
- | |||
- | This plugin was originally written for the DokuWiki template and it defaults to settings for the dokuwiki template. If you are using the DokuWiki template, it will work right out of the box and will convert all headers from h1-h4 into toggles. | ||
- | |||
^ option | ^ option | ||
Line 68: | Line 65: | ||
| xcl_headers | | xcl_headers | ||
| mobile_alt | | mobile_alt | ||
- | | tablet_alt | + | | tablet_alt |
|tablet_toggle| 1,0 |0 |Use toggles on tablets as well as phones| | |tablet_toggle| 1,0 |0 |Use toggles on tablets as well as phones| | ||
- | **Notes on the Options | + | ==== Notes on the Options |
* **Platform ** | * **Platform ** | ||
Line 78: | Line 76: | ||
* '' | * '' | ||
* **Name and Type** | * **Name and Type** | ||
- | * The name is either an id or a class attribute of the div which governs | + | * The '' |
* **Headers and xcl_headers** | * **Headers and xcl_headers** | ||
* The headers option selects the smallest header to be converted to a toggle. If you choose h6, all headers between h1 and h6 will be converted to toggles. You can, however, use the xcl_headers setting to omit selected headers from being converted to toggles. | * The headers option selects the smallest header to be converted to a toggle. If you choose h6, all headers between h1 and h6 will be converted to toggles. You can, however, use the xcl_headers setting to omit selected headers from being converted to toggles. | ||
* **mobile_alt** | * **mobile_alt** | ||
- | * When '' | + | * When '' |
* **tablet_alt** | * **tablet_alt** | ||
* If set to true the '' | * If set to true the '' | ||
Line 122: | Line 120: | ||
- 20cones | - 20cones | ||
- | - adoradark | + | - adoradark |
- | - arctic | + | |
- arctictut | - arctictut | ||
- | - bootstrap3 | + | - bootstrap3 |
- | - codowik | + | |
- dokucms | - dokucms | ||
- | - doogiestpl | ||
- flat | - flat | ||
- greensteel | - greensteel | ||
- kajukkk | - kajukkk | ||
- | - material | ||
- minima | - minima | ||
- monochrome | - monochrome | ||
- prsnl10 | - prsnl10 | ||
- sprintdoc | - sprintdoc | ||
- | - twentyfifteen | + | - twentyfifteen |
- | - vector | + | |
- wallpaper | - wallpaper | ||
- white | - white |
plugin/sectiontoggle.txt · Last modified: 2023-12-31 18:13 by 24.78.8.122