Fullscreen
Loading...
 
[Show/Hide Left Column]
[Show/Hide Right Column]

Print
  • World
    • No language is assigned to this page.

Default templates

See also:
Table-assisted templates?
Theme-specific templates



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.

header.tpl

This file contains the HTML head section.

tiki-tests_topbar.tpl

Displayed if the Tiki tests feature is activated.

tiki-ajax_header.tpl

Included and activated if Ajax is turned on.

tiki-site_header.tpl

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.

tiki-site_header_top.tpl

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.

tiki-site_header_top_begin.tpl

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.

tiki-secondary_sitemenu.tpl

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.

tiki-site_header_options.tpl

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.

tiki-site_header_login.tpl

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.

tiki-site_header_top_end.tpl

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.

tiki-sitemenu.tpl

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

footer.tpl

This file contains code that needs to be just above the closing HTML tag.

Subscribe to Tiki Newsletters! [toggle]

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other big news!
Contribute to Tiki

Theme: Fivealive [toggle]

Shoutbox

luci, 09:13 GMT, Mon 09 of Dec, 2013: logo updated with ®. please do ctrl+F5 refresh...
chibaguy, 06:31 GMT, Thu 16 of May, 2013: Veronica, that star has been eclipsed many times, with Tiki 11.o now soon to rise. ;-)
veronicamarsh, 08:33 GMT, Sun 12 of May, 2013: tikiwiki 2.0 is the star of this weekend. Just follow as we add it to SM dev.
chibaguy, 02:57 GMT, Thu 04 of Oct, 2012: This is a late reply, but, for the record, the Milkyway theme (following the original design) doesn't have a search form in the top bar. You can put one at the top of a side column, etc. instead.
andi6803, 12:20 GMT, Tue 18 of Oct, 2011: I use tiki 6v4 with the Milkyway theme. But it's not possible to switch on the search bar at the top bar. With other themes it works.