[dokuwiki] Re: New repository plugin

  • From: Guillaume Turri <guillaume.turri@xxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Sun, 2 Jan 2011 12:56:26 +0100

Hi,

2010/12/29 Håkan Sandell <sandell.hakan@xxxxxxxxx>

> So anyone interested
>   1. Install the plugin
> http://github.com/HakanS/dokuwiki-plugin-pluginrepo
>   2. Change config options – especially db_name.
>   3. A number of test pages are included in the test directory, add
> them to your wiki
>   4. Visit all pages in plugin/template namespace to automatically
> create and populate sqlite database.
>
>
I wanted to try the plugin, and I successfully completed  steps 1 to 3.
However, when I visit the pages copied from the test directory, the 5 tables
remain empty.

I tried to understand what I may have done wrong, reading the code.
As far as I can see, it seems that the
syntax_plugin_pluginrepo_entry::_saveData is the only function which may
insert data, and this function may be called by the render function, when
the format required is 'metadata'. But I don't really understand how it
should occur.

To put it in a nutshell: is there something I'm not doing right? Is the
"plugins" table supposed to be completed automatically, and if yes, how?

Regards,
Guillaume

Other related posts: