WSN Knowledge Base
Category Types
Category Types
By Paul

By default, you have one type of category: regular. Suppose you wish to create another group called 'special'.

First, make sure you've switched category types on at Admin Panel -> Settings -> Switches. Then go to Admin Panel -> Settings -> Categories. 'Category Types' is near the top. Add a comma after the 'regular' you see there, and type your new group (do not leave a space). In this case, we'll now have 'regular,special'. Also choose the friendly english display language for it which will be used on the edit/submit category pages. Save your settings.

Next, edit your 'main index' (main.tpl) template at Admin Panel -> Templates -> Manage Templates. In order to create a unique style for this category type, copy the style which has been used for regular categories and change it to fit what you wish for your new group. For example:
<!-- BEGIN SPECIAL -->
<blink><b>Extra special type of category: <a href="{CATURL}">{CATNAME}</a></b></blink> <br />
<!-- END SPECIAL -->


By placing that HTML where you want it, you can make the special categories appear in a special place such as at the very top.

Note that category types only apply to the top level categories, not to subcategories.

Rating:


3.5/5 based on 6 votes. The median rating is 4.

Submitted: 09/25/03 (Edited 09/29/09)

Description: Creating special categories.

Views: 3603 views. Averaging 1 views per day.
In the most recent 30 day period, there've been 7 views.

Previous Article | Next Article

Features Showcase Purchase Services Resources Support