DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:sectiontoggle

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
plugin:sectiontoggle [2019-07-29 16:38]
turnermm [Installation]
plugin:sectiontoggle [2019-09-22 19:18] (current)
turnermm [sectiontoggle Plugin]
Line 5: Line 5:
 author ​    : Myron Turner author ​    : Myron Turner
 email      : turnermm02@shaw.ca email      : turnermm02@shaw.ca
-type       : syntax +type       : ​action,syntax 
-lastupdate : 2019-07-28+lastupdate : 2019-09-22
 compatible : 2012-10-13 "Adora Belle",​ 2013-05-10a "​Weatherwax",​ 2014-09-29b "​Hrun",​ Detritus, Eleonor Of Tsort, Frusterick Manners, Greebo compatible : 2012-10-13 "Adora Belle",​ 2013-05-10a "​Weatherwax",​ 2014-09-29b "​Hrun",​ Detritus, Eleonor Of Tsort, Frusterick Manners, Greebo
 depends ​   :  depends ​   : 
Line 52: Line 52:
   ~~stoggle_buttons~~   ~~stoggle_buttons~~
  
-These buttons will be hidden if toggling is disabled, as described below under Configuration.+These buttons will be hidden if toggling is disabled ​using the ''​suspend''​ option, as described below under Configuration.
  
-==== Override ==== 
-This feature enables you to create a container ''​div''​ for the page, in which case it is not necessary to set the **name** option for identifying the div which holds the wiki content. However, you must set the **type** option either to ''​id''​ or to ''​class''​.  ​ 
-<​code>​ 
-~~stoggle_openDIV~~ 
-~~stoggle_closeDIV~~ 
-</​code>​ 
-You place the ''​openDIV''​ at the top of your wiki page and the ''​closeDIV''​ at the bottom. ​ This will create a div with a ''​section%%__%%toggle''​ id.  The entire wiki page will then be enclosed within this div. In all but the simplest of pages, these macros must be at the very top and the very bottom of your page. 
-  
  
 ===== Configuration ===== ===== Configuration =====
Line 74: Line 66:
 | mobile_alt ​  ​| ​                   |                                                                | An alternate template installed for phones, in case your preferred template does not support phones. ​ | | mobile_alt ​  ​| ​                   |                                                                | An alternate template installed for phones, in case your preferred template does not support phones. ​ |
 | tablet_alt ​  | 1,0                | 0                                                                           | Use the alternate template for tablets |  | tablet_alt ​  | 1,0                | 0                                                                           | Use the alternate template for tablets | 
-|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| ​  ​ 
 +|xcL-ns| | |Comma separated list of namespaces to be excluded from toggles, without initial or final colons (i.e.  name:space , not :​name:​space:​ ) |                                                            
 +|xcl_pg| | |Comma separated list of page ids to be excluded from toggles (without initial colons, i.e  page:id, not :page:id )|
 ==== Notes on the Options ==== ==== Notes on the Options ====
  
plugin/sectiontoggle.1564411119.txt.gz · Last modified: 2019-07-29 16:38 by turnermm