Latest Register Log In

+ Advanced Search

Similar Categories

Similar Categories
By
05/25/07 (Edited 01/31/14)

At Admin Panel -> Settings -> Switches, you have an option labeled "similar categories". When activated, this displays (in the 'show listings in category' template above the subcategory list) a list of categories which resemble the one being viewed. The matches are generated by a MySQL fulltext title comparison, and the _categories table will have to be MyISAM or the MySQL version at least 5.6 to use InnoDB (don't worry, WSN defaults to MyISAM).

To display similar categories in other spots you can use this template code in any template area that's within the scope of a category (this includes category toplists):
<IF {CATNUMSIMILAR}>
<div id="similar">
{CATNUMSIMILAR} {LANG_DISPLAYLINKS_SIMILARCATS}:<br >
<!-- BEGIN SIMILAR CATEGORIES -->
{CATNAV[0 <,> 0 <,> 1]} <IF {SWITCH_COUNTS} and not {CATACTASLINKBOOL}>({CATNUMLINKSFORMAT})</IF><br >
<!-- END SIMILAR CATEGORIES -->
</div>
</IF>




Description Displaying an automatic list of related categories.
Rating
Views 414 views. Averaging 0 views per day.