Now, updated for Tiki 8!
Now accepting new user registrations! Become a contributor.
Customizing Per Page
Previously, you saw how to add new CSS styles to Tiki. While this method works well, it can add additional "overhead" to your site: Why load all those custom styles, if you only need to use them on specific pages?Including a CSS file
{if $page eq 'WIKI_PAGE_NAME'}
<link rel="stylesheet" href="DIRECTORY/FILENAME.css" type="text/css" media="screen" />
{/if}![]() | Note: The {if} notation is an example of using Smarty and PHP syntax. See Modifying Templates for more information. |
Likewise, if you use the Custom CSS tab to include inline styles you can also make those styles conditional:
Including a CSS file
{if $page eq 'WIKI_PAGE_NAME'}
...
{/if}![]() | Note: The $page variable works only with wiki pages. |
Contributors to this page: Rick Sapir
.
Page last modified on Thursday, June 16, 2011 09:58:17am EDT by Rick Sapir.
The content on this page is licensed under the terms of the Copyright Information.
Sidebar
What do you think?
What do you think of this project?
"Definitely a must read for anyone undertaking a project using Tiki."
Is Essentials helpful?


