Important

Major updates are in progress. Some pages and languages may not be available.

Customizing by Category

In addition to customizing per page, you can also use customized styles for specific categories.
{TIP()}Learn about category basics in Using Categories in Tiki for Dummies Smarties.{TIP}
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}







Advertising