Loading...
 
Skip to main content

Themes


editing of *.tpl in themes broken for theme controll?

Hi,

I have tried to edit the *.tpl files of a template, but it seems that this is not having the desired effect when used with "template control".

I'm using strasa as default template and want a slightly different layout for some pages. For this I use "theme control". I attach a category to all the pages that should have the new layout and configure the new theme "newstrasa" to be used with this category. This works, e.g when I pick one of the predefined themes, the pages belonging to the new category show differently.

I have copied the contents of
styles/strasa to styles/newstrasa , styles/strasa.css to styles/newstrasa.css and templates/styles/strasa to templates/styles/newstrasa .

For testing I then tried to change the header, so I edited templates/styles/newstrasa/tiki-site_header_options.tpl, but it seems that this is not taken into consideration. Tikiwiki always seems to pick the tiki-site_header_options.tpl from themes/styles/strasa (when I edit this, both the pages belonging to the category and the rest are changed). But when I edit the templates/styles/newstrasa/tiki-site_header_options.tpl, the changes are not picked up.

I have reproduced this using other predefined templates having *.tpl files. It seems that the changes I make in the *.tpl files are not considered.

I use Tikiwiki 4.1 on linux.

Am I misunderstanding something or is this a bug

What I want to achieve is to show a different site logo for the pages in the new category. Maybe there is another way of doing this.


thanks for your help
Kurt

The method you are using appears to be correct, and should work. Did you clear the caches (at tiki-admin_system.php)? Sometimes this is needed to see the changes.

-- Gary


yes I cleared the caches.

My edits do take effect when I edit the template files in the strasa dir but not when I do so in the newstrasa dir, so that makes my think that the error is somewhere else.

any more hints?
thanks
Kurt

P.S.: I'm getting a strange "variable "sorting" has to be set" error when replying.


I more and more think that this is a bug.

I just switched around, using newstrasa as default template and strasa as the one attached to the category. Now I can edit the newstrasa template files but not the ones ins strasa.

Can somebody confirm this. (tiki 4.1).
Kurt