The outline below shows the Smarty template (.tpl) files that make up a Tiki page, and the hierarchy of how they are included.
tiki.tpl
This is the main template file that is the base of all Tiki pages.
This file contains the HTML head section.
tiki-tests_topbar.tpl
Displayed if the Tiki tests feature is activated.
Included and activated if Ajax is turned on.
This file is a "wrapper" that contains Smarty include statements that load files that in turn contain the site identity items, which display above the three content columns in the middle of the page.
This file is also a wrapper in the sense that it doesn't contain actually code, but just loads the files that do contain code. It covers (in
div id="header-top") the area of the page that starts at the top margin and ends just above the top horizontal menu.
This file is just the opening tag for
div id="header-top". It's a separate file to give the option for the div to have another class or id, etc.
New in Tiki 5, this file is for the secondary menu option. The purpose of the secondary menu is to supplement the main menu by displaying another set of links, at the page top by default. The page-top links at the tikiwiki.org project sites are an example of its use.
This contains what are called the site header options: the site logo, site title and subtitle, and ad banner, as can be configured on the Look and Feel admin page.
This holds the log-in form that's displayed at the page top. It's a separate file so, like the other files contained in "wrapper" files, its include statement can be moved up or down in the wrapper file, or moved to another file, to enable a new display position for it in a custom theme without requiring any actual code to be modified for the theme.
Holds just the closing div tag for
div id="header-top"
tiki-top_bar.tpl
Another wrapper file that holds the objects that display in the horizontal navigation bar.
tiki-top_bar_begin.tpl
Just the opening tag for
div id="tiki-top".
tiki-sitesearchbar.tpl
This holds the code for the site searchbar, which is usually positioned at the right end of the menu bar.
This is the code for the menu, as configured on the Look and Feel admin page ("Site menu bar").
tiki-sitelocbar.tpl
If activated, this displays the "breadcrumb" links in the page-top position as configured on the Look and Feel admin page.
tiki-top_bar_end.tpl
Contains the closing tag for
div id="tiki-top"
tiki-top_bar_custom_code.tpl
This loads the custom content as input on Look and Feel "top bar custom content". It normally displays below the menu and above the three columns of the page middle.
(Content columns)
At this position in the tiki.tpl file is the code to display the three columns in the middle of the page - the left and right columns that contain the modules, and the center column that holds the main content for the page; the templates for the page center aren't called directly from tiki.tpl, and vary according to the Tiki feature.
tiki-bot_bar.tpl
This file contains code to display, depending on admin configuration, bottom bar custom content and site report link, the "send a link" line, the software-Tiki-uses icons, RSS feed icons, and debug and SVN update information. Also this file has include statements for:
babelfish.tpl
Babel Fish translation icons or links.
credits.tpl
The "powered by Tiki" statement, and theme name and credit
This file contains code that needs to be just above the closing HTML tag.