selfthinker / dokuwiki-plugin-loadskin

Change the skin/template/theme of DokuWiki - admins can select templates for pages or namespaces, users can select templates for the whole wiki
http://dokuwiki.org/plugin:loadskin
GNU General Public License v2.0
7 stars 6 forks source link

Issue with templates that have parameters in Configuration Manager #24

Closed umbomas closed 8 years ago

umbomas commented 8 years ago

Hi, I have an issue when using the plugin loadskin together with a "configurable" template (i.e. a template that has its own section in the Configuration Manager page). The "configurable" template I refer to is bootstrap3.

My configuration is:

When I open the Configuration Manager, the section Template/Bootstrap3 is not shown.

I wonder if the problem is to be ascribed to loadskin. Thanks in advance!

selfthinker commented 8 years ago

This is due to how DokuWiki handles template configurations. It is only possible to configure the currently activated template. (It is also not possible to configure de-activated plugins.) And it's not possible to change that (or rather, it's very difficult as it needs basic changes to the core).

The best workaround is to switch to each template, configure it and switch back to your chosen main template. The configuration of each template will be kept, as you already found out.

selfthinker commented 8 years ago

Hmm, I just thought of another workaround how to overcome this issue. Right now templates via loadskin deliberately don't work in the admin section and the main template will always be used. But I could make that configurable. So, if you click on the admin link when you are on a page which uses a different template, you could keep the template in the admin section. That way you can configure all templates without the need to really switch to them.

selfthinker commented 8 years ago

I have now implemented a config option to allow the template choice to persist in the admin section. That way you can see the configuration manager in different templates and therefore configure each of them separately without the need to activate the template properly in the config manager.

umbomas commented 8 years ago

Great! It works like a charm!

Thank you very much @selfthinker