Now, updated for Tiki 8!
Now accepting new user registrations! Become a contributor.
| More
Join Print Print multiple pages Convert to PDF

Customizing by Category

In addition to customizing per page, you can also use customized styles for specific categories.
TipTip:
Learn about category basics in Using Categories(external link) in Tiki for Dummies Smarties.

To allow Tiki to use category information and IDs in templates and styles, you must first enable the Categories used in templates option on the Admin: Categories page:
Admin: Category
Enabling the use of Category IDs in templates.

Using the same process as before, you can create an {if} statement to check for a specific category ID. For example, to check if the current object is in category 2, you could use:
{if in_array(2, $objectCategoryIds)}
     ...
{/if}









Contributors to this page: Rick Sapir .
Page last modified on Saturday, July 03, 2010 02:35:26pm EDT by Rick Sapir.
The content on this page is licensed under the terms of the Copyright Information.

Buy the Books

Tiki Essentials & Tiki for Smarties -- Buy the Books.
Available from Amazon, LuLu, and more as paperback or ebook...

What do you think?

What do you think of this project?



Anti-Bot verification code image Try another code



View Results
(Votes: 20)

"Very useful and [well] organized..."

Is Essentials helpful?

Essential Readers



Advertising



Powered by Tiki Wiki CMS Groupware
Creative Commons Copyright. Some rights reserved.
Tiki Essentials (this site) is © 2011-2012 by Rick Sapir, published by KeyContent.org, and is licensed
under a Creative Commons Attribution-Share Alike 3.0 United States License. Some rights reserved. Privacy Policy.
Permissions beyond the scope of this license may be available at http://twessentials.keycontent.org/Copyright Information.
Questions, comments, or concerns about this site or the guide? Let me know.
New to Tiki? Try Tiki for Dummies Smarties: A beginner's guide to using Tiki Wiki CMS Groupware.


Feedback Form
Feedback Analytics