DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:templatebyname

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:templatebyname [2019-11-09 04:25] Dr-Yukonplugin:templatebyname [2021-02-24 02:28] (current) – Ouch. Dr-Yukon
Line 7: Line 7:
 type       : Action plugin type       : Action plugin
 lastupdate : 2013-08-17 lastupdate : 2013-08-17
-compatible : Angua, Adora Belle, Weatherwax, Greebo+compatible : Angua, Adora Belle, Weatherwax, Binky, Ponder Stibbons, Hrun, Detritus, Elenor of Tsort, Frusterick Manners, Greebo, !Hogfather
 depends    :  depends    : 
 conflicts  conflicts 
Line 18: Line 18:
 donationurl:  donationurl: 
 ---- ----
 +
 +:!: One correction is needed to make this old plugin work again:
 +  - in __''action/findtemplate.php''__ on line 14 in the ''register'' function, remove "&" because of this function &-ed by default in all new Dokuwiki builds
  
 ===== Installation ===== ===== Installation =====
Line 42: Line 45:
   * The ''%%~_%%yourdirectoryname.txt'' page template will be used for the file representing ''yourdirectoryname'' wich is just 1 level below the current namespace. In the file structure it will be the start.txt file.   * The ''%%~_%%yourdirectoryname.txt'' page template will be used for the file representing ''yourdirectoryname'' wich is just 1 level below the current namespace. In the file structure it will be the start.txt file.
   * The ''%%~~_%%yourdirectoryname.txt'' page template will be used for the files representing ''yourdirectoryname'' for all namespaces below the current namespace.   * The ''%%~~_%%yourdirectoryname.txt'' page template will be used for the files representing ''yourdirectoryname'' for all namespaces below the current namespace.
 +
 +**Attention: ''root/.../namespace/_template.txt'' have more priority than even ''root/%%__%%yourfilename.txt'' so lock ''_template.txt'' while generating pages**
  
 ===== Change Log ===== ===== Change Log =====
plugin/templatebyname.1573269920.txt.gz · Last modified: 2019-11-09 04:25 by Dr-Yukon

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki