Loading...
 
Skip to main content

Themes


Tiki page templates layout

Hello everybody,

I'm trying to change the layout of my tiki pages, and noticed that there are several templates involved. Since this is a major change, I'd need to ensure that I'll make the changes correctly.

I've found a topic/article here few weeks ago explaining the tiki layout distribution, but I've been unable to find it again. Does anybody know where/which is it?

I apologize for the topic duplication. Thanks in advance,

For typical CSS divs and some td selectors, see MoreNeatLayoutSchema. I didn't look closely to see if it's still up to date, though. I don't think it includes new additions related to column-flipping.

As far as the templates go, basically, tiki.tpl displays the whole page. At the top it calls tiki-top_bar.tpl for, at minimum, the "This is Tiki..." line and the calendar link, and tiki_bot-bar.tpl for the bottom bar, which includes the page-bottom icons and stats.

For the middle of the page, tiki.tpl indicates the left and right columns and the center column. This section of tiki.tpl is kinda nutty-looking because of the flip-columns code, etc. But below that stuff you can see the left and right column tds — each of which has an if statement and section for looping through the modules — and the center td, which loads $mid, which varies according to the Tiki content to be displayed. For wiki pages, tiki-show_page.tpl gets the call for the centercolumn. For other sections, the .tpl file called is generally named the same as the corresponding .php file whose URL you see. Exceptions are mainly related to admin pages.

-- Gary - zukakakina.comQuestion, themes.tw.oQuestion

Thanks, Gary😀

That's exactly what I was looking for.


.