DokuWiki

It's better when it's simple

User Tools

Site Tools


Sidebar

Translations of this page?:

Learn about DokuWiki

Advanced Use

Corporate Use

Our Community


Follow us on Facebook, Twitter and other social networks.

Our Privacy Policy

devel:template_integrate_plugins

Integrate plugins into your template

There are plugins that adds buttons, switchers and other useful interface elements. On this page the integration of such elements is explained, so you can support them out of the box.

Translation plugin

The Translation plugin delivers a language switcher, which shows a list of available translations for a page.

Integration:

<?php
$translation = &plugin_load('helper','translation');
if ($translation) echo $translation->showTranslations();
?>

This loads the plugin and when the translation plugin is available the switcher is shown.

For more plugin details see Translation plugin.

Templates supporting this plugin are tagged with Translation.

devel/template_integrate_plugins.txt · Last modified: 2013-04-10 12:22 by Klap-in