This shows you the differences between two versions of the page.
en:linux:dokuwiki:plugins [2011/01/08 17:28] matthieu created |
en:linux:dokuwiki:plugins [2011/10/04 21:57] (current) matthieu [Translation] |
||
---|---|---|---|
Line 23: | Line 23: | ||
To enable it, you need to add the following code in your template : | To enable it, you need to add the following code in your template : | ||
- | <code> | + | <code php> |
<?php | <?php | ||
$translation = &plugin_load('helper','translation'); | $translation = &plugin_load('helper','translation'); | ||
- | echo $translation->showTranslations(); | + | if ($translation) echo $translation->showTranslations(); |
?> | ?> | ||
</code> | </code> | ||
Line 54: | Line 54: | ||
You can also get the list of the pages tagged with the following code : | You can also get the list of the pages tagged with the following code : | ||
{{topic>[tag]&[flags]}} | {{topic>[tag]&[flags]}} | ||
- | |||
- | Here is a small patch to correct a small style issue with my template : {{:linux:dokuwiki:tag_2011-01-07.patch|}} | ||
- | <code> | ||
- | :/opt/dokuwiki/lib/plugins/tag# patch -p 1 < /root/tag_2011-01-07.patch | ||
- | patching file style.css | ||
- | :/opt/dokuwiki/lib/plugins/tag# | ||
- | </code> | ||
For more information, please visit the plugin website. | For more information, please visit the plugin website. |