DokuWiki

It's better when it's simple

User Tools

Site Tools


include_hooks

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
include_hooks [2014-02-06 13:44] – [Available Hooks] Klap-ininclude_hooks [2023-09-24 00:01] (current) Klap-in
Line 1: Line 1:
 ====== Include Hooks ====== ====== Include Hooks ======
-Include Hooks - A simple way to add static content to the installation of DokuWiki without writing your own template. You can use them to add to each page of a standard header or logo or a copyright at the bottom of the page. 
  
-The default template DokuWiki searches for files with certain names in the directory lib/tpl/default/ and just include them in the right place on the page. You can include any HTML code within the following list of files.+Include Hooks -- a simple way to add static content to the installation of DokuWiki without writing your own template. You can use them to add to each page of a standard header or logo or a copyright at the bottom of the page. 
 + 
 +The default template DokuWiki searches for files with certain names in the directory ''lib/tpl/dokuwiki/'' and includes them in the right place on the page. You can include any HTML code within the following list of files.
  
 ===== Available Hooks ===== ===== Available Hooks =====
-All files must be located in the template directory e.g. ''lib/tpl/dokuwiki/'' 
  
-^ File Name       ^ Position of included HTML ^ +The files can be located in the template directory e.g. ''lib/tpl/dokuwiki/'' or in the main configuration directory ''conf/''
-| meta.html       | Inside the HTML <head>, use this to add additional styles or metaheaders | + 
-| topheader.html  | At the very top of the page right after the <body> tag | +^ File Name           ^ Position of included HTML                                                 
-| header.html     | Above the upper blue bar, below the [[pagename]] and wiki title | +| meta.html           | Inside the HTML <head>, use this to add additional styles or metaheaders  
-| pageheader.html | Below the [[breadcrumbs]], above the actual content | +| topheader.html      | At the very top of the page right after the <body> tag\\ :!: this hook does not exists in the default dokuwiki template, but some templates still propose it.                   
-| pagefooter.html | Above the lower blue bar, below the last changed Date | +| header.html         | Above the upper blue bar, below the [[pagename]] and wiki title           | 
-| footer.html     | At the very end of the page just before the </body> tag |+| sidebarheader.html  | At the top  of the sidebar                                                | 
 +| sidebarfooter.html  | At the bottom of the sidebar                                              
 +| pageheader.html     | Below the [[breadcrumbs]], above the actual content                       
 +| pagefooter.html     | Above the lower blue bar, below the last changed Date                     
 +| footer.html         | At the very end of the page just before the </body> tag                   |
  
-The distribution includes a sample file DokuWiki ''footer.html'', containing a few buttons and RDF-description of a Creative Commons license.+===== See also =====
  
 +  * [[devel:templates|DokuWiki template development]]
include_hooks.1391690655.txt.gz · Last modified: 2014-02-06 13:44 by Klap-in

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki