// My first DokuWiki plugin

Few months ago I completely updated my website. I chose DokuWiki as a very flexible engine extendable with lots of plugins.

I also used Blog plugin and more to make my personal blog. But I missed one feature. This was metadata footer at blogpost page, similar to the one printed by Include plugin at blog page. Yes, DokuWiki prints footer, but when Discussion plugin is used, it is printed far far below the comments.

So I made simple plugin which inserts this information right before the text and comments. As an example, see information down this page. I had to make some hack of event handler internals to make my plugin to be the first listener of TPL_ACT_RENDER_AFTER event, just before Discussion plugin. As an effect, meta footer is printed before comments. You can download it on my DokuWiki goodies page.


Thadeu Penna
| #1 | 2008-09-07 at 03:15

Nice plugin, thanks!

I just translated the files to Brazilian Portuguese (pt-br). So settings.php becomes:

$lang['pages_regexp'] = 'Páginas afetadas - padrão';

and lang.php $lang[“posted”] = “Postado por”;

Best wishes from Brazil

Martin Plicka
| #2 | 2008-09-07 at 11:45

@Thadeu Penna: You're welcome. Your translation is included in updated version. Also your credits :-)

Thadeu Penna
| #3 | 2008-09-09 at 14:33

It's me again. Firstly, thanks for including Brazilian Portuguese translation. I missed one translation in settings.php

 $lang['show_user'] = 'Mostrar nome do autor';

Other point is, I am not sure if is blogmeta related, but blog and blogmeta do not follow the date format given in the Configuration Settings. I have set to %d/%m/%Y and I got %Y/%m/%d.

All the best

Martin Plicka
| #4 | 2008-09-09 at 21:03

@Thadeu Penna: Hm, I see your page use new version of DokuWiki. They changed date formating syntax with last release (http://www.dokuwiki.org/changes#release_2008-05-05). Have you updated date format setting? The same happened to me after update. My plugin use settings from Display Settings section and respect new format. You can see it in this blogpost. My setting is %d.%m.%Y %H:%M

| #5 | 2009-03-30 at 13:15


Does this plugin provide comments system or does it compliment “Discussion” plugin?

Thanks Samuel

| #6 | 2009-03-30 at 13:33

@Samuel Williams: Sorry, after testing I found out that you need to install discussion plugin.


| #7 | 2011-05-24 at 19:07

I can't install it like the http://mplicka.cz/en/blog. Plz make some tuts

Leave a comment…

T X᠎ L E U
  • E-Mail address will not be published.
  • Formatting:
    //italic//  __underlined__
    **bold**  ''preformatted''
  • Links:
    [[http://example.com|Link Text]]
  • Quotation:
    > This is a quote. Don't forget the space in front of the text: "> "
  • Code:
    <code>This is unspecific source code</code>
    <code [lang]>This is specifc [lang] code</code>
    <code php><?php echo 'example'; ?></code>
    Available: html, css, javascript, bash, cpp, …
  • Lists:
    Indent your text by two spaces and use a * for
    each unordered list item or a - for ordered ones.
About me
SW developer, amateur tennis player, rock'n'roll & heavy metal fan.