Loading...
Find
Log in
Username:
Password:
CapsLock is on.
Remember me (for 1 week)
Log in
Stay in SSL mode
History: Template Overview
View page
Collapse Into Edit Sessions
Source of version: 2
«
»
''(from [http://doc.tikiwiki.org/tiki-index.php?page=Styles+and+Themes|Style and Themes] - to be updated)'' ! How to modify TPL files The TPL files are written using the Smarty template language, which takes a little getting used to. See [http://smarty.php.net/|smarty.php.net]. To modify the layout of Tiki in your theme, just edit the files you copied. You can add images, define columns, etc. The specific template files will differ based on which pre-existing theme you choose, but some of the commonly used files are: * ''tiki.tpl'': the main template defining the layout of the whole application * ''error.tpl'': used to display errors * ''header.tpl'': the HTML header * ''tiki-top_bar.tpl'': top navigation bar * ''tiki-bot_bar.tpl'': bottom navigation bar * the template files with names like ''tiki-print.tpl'' are used for printable representation of objects so you usually don't want to change them. As you can see you can modify the layout of the whole tiki application by just changing one file. !!!Overriding templates As we saw above, the template files for custom themes all live in a directory named something like ''templates/styles/custom_theme_name''--for example, ''templates/styles/screensite''. The default template files live just one directory below there, in ''templates'' and its subdirectories, notably: * ''templates/mail'' * ''templates/modules'' When creating a theme you can override any template file. You just need to put a modified template file in the directory ''templates/styles/custom_theme_name''. For example, if we wanted to modify the forum listing in our ''screensite'' theme, we'd just copy the file ''tiki-forums.tpl'' from * ''templates/tiki-forums.tpl'' * to * ''templates/styles/screensite/tiki-forums.tpl'' Then we'd edit our new copy of the file. Tiki will substitute whatever is in your custom theme directory for the TPL files in the default directories. ^ This technique works on files in the subdirectories, too. E.g., to change the application menu in your theme, just copy the file mod-application_menu.tpl from * ''templates/modules/mod-application_menu.tpl'' * to * ''templates/styles/custom_theme_name/modules/mod-application_menu.tpl'' ^
History
Enable pagination
rows per page
HTML diff
Side-by-side diff
Side-by-side diff by characters
Inline diff
Inline diff by characters
Full side-by-side diff
Full side-by-side diff by characters
Full inline diff
Full inline diff by characters
Unified diff
Side-by-side view
HTML diff
Side-by-side diff
Advanced
Information
Version
Mon 15 of Feb, 2016 12:51 GMT
Jyhem
17
Mon 15 of Feb, 2016 12:47 GMT
Jyhem
16
Wed 19 of Mar, 2014 01:27 GMT
marclaporte
15
Sat 27 of Jul, 2013 07:08 GMT
haggis73
changed url and comment to smarty.
14
Wed 30 of Jun, 2010 07:33 GMT
chibaguy
Some updating.
13
Wed 30 of Jun, 2010 06:45 GMT
chibaguy
Changed bold line to heading.
12
Wed 30 of Jun, 2010 06:44 GMT
chibaguy
typo
11
Wed 30 of Jun, 2010 06:43 GMT
chibaguy
Some updating.
10
Tue 27 of Jan, 2009 12:37 GMT
chibaguy
Updating
9
Tue 27 of Jan, 2009 12:34 GMT
chibaguy
Some updating.
8
Wed 08 of Oct, 2008 05:18 GMT
chibaguy
Some updating.
7
Mon 09 of Jun, 2008 15:12 GMT
Oswaldo1965
6
Mon 21 of Apr, 2008 20:24 GMT
mlpvolt
5
Fri 28 of Dec, 2007 20:30 GMT
mlpvolt
4
Mon 20 of Feb, 2006 02:32 GMT
chibaguy
Minor edits.
3
Fri 17 of Feb, 2006 06:56 GMT
admin
Content added from doc.tw.o
2
Fri 17 of Feb, 2006 02:41 GMT
system
created from structure
1
Select action to perform with checked...
Remove
OK
Switch Theme
Site theme (fivealive-lite/grape)
Default
Amelia
Business
Cerulean
Cosmo
Cyborg
Darkly
Darkroom
Darkshine
Feb12
Fivealive-lite
Fivealive
Flatly
Greenvalley
Journal
Jqui
Lighty
Litera
Lumen
Lux
Materia
Minty
Morph
Ohia
Pulse
Quartz
Sandstone
Simplex
Sketchy
Slate
Solar
Spacelab
Strasa
Superhero
Thenews
Tikicorp
Tikinewt
Tikipedia
United
Utopias
Vapor
Yeti
None
Akebi
Grape
Kiwi
Lemon
Orange
Plum
Raspberry
Watermelon
Switch
Layout
Stay on this page
Default
Fixed top navbar (uses site icon + "topbar" module zone)
Basic Bootstrap
Classic Tiki (3 containers - header, middle, footer)
Tikipedia
Latest Changes
No records to display
...more
Subscribe to Tiki Newsletters!
Delivered fresh to your email inbox!
Don't miss major announcements and other big news!
Site Config
Site upgraded to Tiki 23.x
Sat 24 of Jul, 2021 00:30 GMT
Site upgraded to Tiki 20
Wed 29 of May, 2019 07:57 GMT
We are now on Tiki 19.x
Fri 05 of Oct, 2018 10:02 GMT
Shoutbox module removed
Thu 28 of Jun, 2018 07:01 GMT
We are now on Tiki 18.x
Wed 02 of May, 2018 08:46 GMT
Upgraded to Tiki 17.0
Wed 02 of Aug, 2017 08:19 GMT
Upgraded to Tiki 15.0alpha
Tue 08 of Mar, 2016 13:34 GMT
Site updated to Tiki 14 beta
Tue 21 of Apr, 2015 00:01 GMT
Testing Tiki10
Thu 15 of Nov, 2012 23:06 GMT
Configurable header buttons in XtratoVeil layout
Wed 17 of Oct, 2012 14:54 GMT