Table of Contents

Footer Plugin

Compatible with DokuWiki

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

plugin Add footer text to pages as a footer template for a specific namespace

Last updated on
2020-12-17
Provides
Syntax
Repository
Source

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.

Installation

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

Usage

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 hf_footer and hfu_footer in the namespace directory.

Additional syntax

To avoid a certain page from the footer template (e.g. the start page) you can insert this special command

~~NOFOOTER~~

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.

Example

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

Some tips

Problems

Why don't my pages react with this plugin?

Configuration and Settings

The default behavior is managed by the wiki admin through the Configuration Settings.

Name Value Description
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

History

Previous versions

The footer plugin is a clone of the headerfooter plugin which isn't maintained for a long time. It also includes the enhancements of HeaderFooter2. But there are some special aspects to this:

Change Log