Loading...
 
Themes

Themes


multiple layouts ? not only style !


Dear Tiki team and users.

I'm testing tikiwiki for a wild organisation that include several regional offices. We need to apply different layout depending of the regional office.

I already try the "theme control", but this change only the style (if different styles exist in the template) not the layout. So we need to apply at least 2 different layout (templates/styles/layout1 and templates/styles/layout2)

For example how to show the search and logins form on one section and not show these forms in another section ?
How to create a homepage completely different (in term of layout/structure) of all the other pages ?

Many thanks for your help.

All the best

Thomas

United States

>
>I already look at documentation and forum, but it seems that you can change ONLY CSS and not the layout !
>

In addition to a CSS each theme can have its own set of customzied template files (TPLs) that you can use to modify the layout.



HTH,

- Rick | My Tiki Blog | My Tiki UserPage
Need more help? Try Tiki for Dummies Smarties: A beginner's guide.
New: Tiki Essentials: What all Smarties need to know about Tiki Wiki CMS Groupware.

Dear ricks99,

I'm not sure that when you change a CSS file this can also change the display or not search form (for example) !
I already look at documentation and forum, but it seems that you can change ONLY CSS and not the layout !
Am I wrong ? not clear ?

Thanks in advanced.

Thomas


Japan

There are several ways to control layout details according to the theme in Tiki.

1) CSS itself can stop page items from displaying (with display:none) or move them around (with absolute positioning, etc.) to some extent. The advantage of doing this is that Tiki code updates don't overwrite custom stylesheet rules, although you have to watch to make sure the custom stylesheet's CSS selectors stay in synch with CSS selectors in the default code (because .tpl files, etc. and how they put CSS selectors on the page may change in new Tiki versions).

2) Smarty filters like {if $prefs.style eq 'feb.12'}(HTML goes here){/if} can be put in any of the Look and Feel textareas .

3) Any Smarty template (.tpl file) in templates/ can be copied to templates/stylename/ and modified, so there is no limit to how much you customize per theme. Themes' .tpl versions have priority over the default .tpls so their customizations are used. The downside of this method is that you may need to update the customized files when the Tiki default template and related code are updated in new Tiki releases. There is more information about this at themes.tiki.org.

There are probably more possibilities but these come to mind first.

-- Gary


Dear Gary,

Thank you for your answer !

This is a new way of tuning for my experiences.

I will try your recommendations.

thank you again for your good answer.

All the best

Thomas