Piet's HomePage

Klein, fein und noch im Aufbau
Hallo Besucher!
Deine IP: [3.147.104.248]

Benutzer-Werkzeuge

Webseiten-Werkzeuge


Inhalt

Aufbau / Strukture

Templates should follow the following directory structure (all paths are relative to the template directory).

CSS files are specified in the style.ini file. Use as many files as you like, but you should at least provide one CSS file for the screen presentation and one for printing.

  • <dokuwiki>/lib/tpl/<template>/
    • <filename>.csstemplate's stylesheets (if more than a few are provided, it makes sense to group them in a css/ subdirectory)
    • script.js – optional, if your template needs JavaScript
    • main.php – general layout of DokuWiki
    • detail.php – the image detail page
    • mediamanager.php – the media-selection popup
    • images/ – all images used in the template (if any)
    • conf/ – configuration files (optional, if configuration is used)
    • lang/ – language files
      • <lang code>/lang.phplocalization strings used in the template (optional, use when needed)
      • <lang code>/settings.php – localization strings used in the configuration manager (if configuration is used)
    • style.ini – see style.ini
    • favicon.ico – favicon (can be overwritten by uploading another one into the root or wiki namespace when tpl_favicon() is used)
    • template.info.txt – A text file with template information required!

Handling of configuration settings is analogous to plugins. Use tpl_getConf(<setting>) to retrieve custom template settings. Saved local settings are stored in DokuWiki's global conf/local.php.


[It's-a Me, Piet!] 2017/12/13 21:33


Cookies helfen bei der Bereitstellung von Inhalten. Durch die Nutzung dieser Seiten erklären Sie sich damit einverstanden, dass Cookies auf Ihrem Rechner gespeichert werden. Weitere Information

Seiten-Werkzeuge