Loading...
 
Skip to main content

Tiki Design


Re: Re: Overview of templates for creating an own theme

posts: 254 Japan

Those themes use the old table-based layout. Tiki 2 (all releases) also use this layout, for themes other than Feb12, Darkroom, The News, and Tikinewt. But the plan is to switch to a floating divs type of layout in Tiki 3. There will have to be some kind of migration path for themes (stylesheets) that expect to find the old tiki.tpl and its layout table. (Some of the new themes use a table also, but not ones with the same details as those of the old themes.)

There are a couple of ways the migration can be done. One is to add a tiki.tpl to, for example, templates/styles/olive/ so that the stylesheet continues to find the table that it's expecting.

The trouble with this is that then you have another file to maintain, and change whenever new things are added to the default tiki.tpl, etc. Also, the theme continues to have an old type of construction.

The other path is to convert the olive and default2 (and other old themes) to use the modern templates. I think this is a better solution. Basically, these are the differences with the new layout method:

  • Floating divs instead of table for main layout (in tiki.tpl)
  • Font sizes are specified by % and ems rather than px.


Actually, I did a Damian theme version that uses the *litecss layout method. It has a small damian.css file that imports tikinewt.css to get support for the new layout method and font sizes, etc. Then damian2.css adds its own style properties for things that are unique to the theme. I think this might be a good method for other people using older themes, so I'll refine it and put up some documentation. (Go to http://zukakakina.com/tiki-index.php and switch theme to Damian to see how it looks. It's not a complete emulation, but you get the idea.)

-- Gary

There are no comments at this time.