/dw-plugin-pagetitle

Define a title of the wiki page by <title> tag. This plugin allows to write decorative title on the page with setting plain title text in metadata storage.

Primary LanguagePHP

PageTitle plugin for DokuWiki

Render title on the page

Define and render a pagename, in other words a title of the wiki page.

  <title>
  **PageTitle** plugin for DokuWiki
  </title>

The specified page title is rendered as <h1 class="pagetitle"> element on the page. You can use bold, italic, superscript and subscript text to show appropriate title on the page, for instance a chemical formula [FeII(CN)6]4-. The formatted title is shown on the page, but it is converted to a plain text for the title of HTML document, like [FeII(CN)6]4-. PageTitle plugin overwrites 'title' value of the metadata of the page to store the plain title text. You may choose to use persistent metadata storage in the Configuration manager to prevent pagetitle reverted or wrongly set during rendering process.

The page title becomes the title of HTML document in combination with your DokuWiki site title. You may need to set useheading option to "navigation" (other than "0") in order to show specified title in the browser title bar.

If you want to set a page title without showing itself on the page, you can instead use following syntax macro:

  ~~Title: PageTitle plugin for DokuWiki ~~

Hierarchical breadcrumbs on the page

(expermental)

  <!--YOU_ARE_HERE-->

This syntax allow you to put hierarchical breadcrumbs in the page. The place holder <!--YOU_ARE_HERE--> is replaced by the hierarchical breadcrumbs provided by this plugin, which uses page id for a breadcrumbs name independently from $conf('useheading') setting.

  ~~ShortTitle: PageTitle ~~

ShortTitle macro is available if you want use shorter title instead of (longer) pagetitle in the hierarchical breadcrumbs.


Licensed under the GNU Public License (GPL) version 2

More infomation is available:

(c) 2014-2019 Satoshi Sahara <sahara.satoshi@gmail.com>