diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-07-26 20:50:55 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-07-26 20:50:55 +0000 |
commit | 40959ce76d159cefaf0431ad2cc61ad35a9f99b1 (patch) | |
tree | a30b415dbb712912fd45584b9861bb680562aba7 /doc/plugins/pagetemplate.mdwn | |
parent | e64442aa08c1d368f0ab3284016b0addb3ac4a67 (diff) | |
download | ikiwiki-40959ce76d159cefaf0431ad2cc61ad35a9f99b1.tar ikiwiki-40959ce76d159cefaf0431ad2cc61ad35a9f99b1.tar.gz |
* Add templatefile hook.
* Add pagetemplate plugin, which allows changing the template used for
a page. (Not to be confused with the hook of the same name..)
Diffstat (limited to 'doc/plugins/pagetemplate.mdwn')
-rw-r--r-- | doc/plugins/pagetemplate.mdwn | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/plugins/pagetemplate.mdwn b/doc/plugins/pagetemplate.mdwn new file mode 100644 index 000000000..192322d72 --- /dev/null +++ b/doc/plugins/pagetemplate.mdwn @@ -0,0 +1,16 @@ +[[template id=plugin name=pagetemplate author="[[Joey]]"]] +[[tag type/chrome]] + +This plugin allows a page to be created using a different +[[template|wikitemplate]]. The page text is inserted into the template, so +the template controls the overall look and feel of the wiki page. This is +in contrast to the [[template]] plugin, which allows inserting templates +_into_ the body of a page. + +This plugin can only use templates that are already installed in +/usr/share/ikiwiki/templates (or wherever ikiwiki is configured to look for +them). You can choose to use any .tmpl files in that directory. Example: + + \[[pagetemplate template=my_fancy.tmpl]] + +[[pagetemplate template=my_fancy.tmpl]] |