Learn about DokuWiki
Learn about DokuWiki
Compatible with DokuWiki
Similar to headerfooter
This plugin allows you to automatically add a specific text section at the bottom of each page of a given namespace. This is done
The additional context is only shown in display mode, not in edit mode. All pages created or maintained in this namespace will get this additional text.
To add footer text to pages in a namespace, you need to create a file named
_footer.txt in this namespace.
And to add footer text to pages in the namespace directory and its subdirectories create a file named
__footer.txt in the namespace directory.
Files beginning with “_” cannot be created or changed within DokuWiki. Instead, you have to create a file and upload it into the wanted namespace. If you don't want this behavior and you want to maintain data from within DokuWiki you have to define prefixes in the plugin settings, e.g. “hf” and “hfu”. In this case, you have to create the pages
hfu_footer in the namespace directory.
To avoid a certain page from the footer template (e.g. the start page) you can insert this special command
to the content of this page. Please note that this command is only replaced from the page text if there is a footer template exactly for the namespace of this page.
The screenshot above shows this syntax:
a) The content of the page “mynamespace:example” is:
====== Example ====== This is an example of the footer plugin.\\ Up to the line you see the text of the Wiki page. ----
b) The content of the page “mynamespace:_footer” in the same namespace is:
And below the line comes the footer text :-D
This footer text is shown on each page of the namespace “mynamespace”.
_footer.txt(for example with only one linebreak) in the current namespace and additionally a file
__footer.txtfor the subdirectories.
Why don't my pages react with this plugin?
_footer.txtare in the same level directory.
The default behavior is managed by the wiki admin through the Configuration Settings.
|separation||paragraph||(default) using a blank line as a split between the original text and header/footer text. (it means a new paragraph).|
|nothing||using nothing as split, which means you have to deal with the border between the original text and header/footer text.|
|prefix namespace||Prefix for the footer template of the current namespace|
|prefix subnamespace||Prefix for the footer template of the sub-namespaces|