Table of Contents

TemplateByName Plugin

Compatible with DokuWiki

  • 2024-02-06 "Kaos" unknown
  • 2023-04-04 "Jack Jackrum" unknown
  • 2022-07-31 "Igor" unknown
  • 2020-07-29 "Hogfather" no

plugin 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.

Last updated on
2013-08-17
Provides
Action
Repository
Source

Tagged with page, template

:!: One correction is needed to make this old plugin work again:

  1. 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

Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.

Examples/Usage

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:

Replace yourfilename or yourdirectoryname with a filename or directoryname you are going to use in you dokuwiki.

Attention: root/…/namespace/_template.txt have more priority than even root/__yourfilename.txt so lock _template.txt while generating pages

Change Log

Known Bugs and Issues

ToDo/Wish List

Discussion

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.