Loading...
 
Themes

Themes


Re: multiple layouts ? not only style !

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

There are no comments at this time.

Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting