WSN Knowledge Base
Featuresspacer Showcasespacer Reviewsspacer Demosspacer Purchasespacer Manualspacer Support
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, go to your admin panel and click 'manage settings'. Scroll down to 'Categpry Types' near the bottom. 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'. Save your settings.

Next, edit your 'main' template. 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="index.php?action=displaycat&cati d={CATID}>{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.

Now, suppose you decide you'd like to make special show in the options on the edit page as "Extra Special". You don't have to edit the setting and force yourself to redo your template -- instead, you can customize the display of each setting by filling in the 'categorytypes' language item. On your 'mangage languages' page find that item and fill in the display names in the same order you have the official names in on the settings page.

Rating: 33333
3.4/5 based on 5 votes. The median rating is 4.

Rate this article:

Submitted: 09/25/03 (Edited 11/23/03)

Description: Creating special categories.

Views: 2590 views. Averaging 2 per day.
In the most recent 30 day period, there've been 3 views.

Previous Article | Next Article


Home    |    Features    |    Showcase    |    Reviews    |    Demos    |    Purchase    |    Manual    |    Support