Plugin that extends the page template functionality. It makes it possible to create a template for a specific file name or templates for specific namespaces.
Compatible with DokuWiki
Plugin that extends the page template functionality. It makes it possible to create a template for a specific file name or templates for specific namespaces.
One correction is needed to make this old plugin work again:
action/findtemplate.php
on line 14 in the register
function, remove “&” because of this function &-ed by default in all new Dokuwiki buildsSearch and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.
Create the page templates like you would create them when you use the basic page template functionality.
With this plugin you can also specify a name:
_yourfilename.txt
__yourfilename.txt
~yourdirectoryname.txt
~~yourdirectoryname.txt
~_yourdirectoryname.txt
~~_yourdirectoryname.txt
Replace yourfilename
or yourdirectoryname
with a filename or directoryname you are going to use in you dokuwiki.
_yourfilename.txt
page template will only be used for a file in the current namespace with yourfilename
as name.__yourfilename.txt
page template will only be used for a file in the current namespace or namespaces below with yourfilename
as name.~yourdirectoryname.txt
page template will be used for all files in the yourdirectoryname
namespace wich resides just 1 level below the current namespace.~~yourdirectoryname.txt
page template will be used for all files in the yourdirectoryname
namespaces below the current namespace.~_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.~~_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
_yourfilename.txt
and __yourfilename.txt
convention. When you have a question or you want to give feedback. Please mail me or use https://github.com/jvanopstal/template-by-name/issues. Thank you.