WSN Knowledge Base
Category and Subcategory List Anywhere
Category and Subcategory List Anywhere
By Paul

Suppose you want to display a bulleted list of categories with their subcategories nested beneath them. You want to put this in the wrapper template, or some other template besides the main index. Just use this template code:
<ul>
<!-- BEGIN TOPLIST -->
<CONFIG>categories[,]id[,]5[,]ascending[,]parent=0[,][,][,]0[,]0[,]0[,]0[,]0[,]0[,][,]0</CONFIG>
<li><a href="{CATURL}">{CATNAME}</a>
<ul>
{CATSUBCATS[<li><a href="{CATURL}">{CATNAME}</a></li>]}
</ul>
<!-- END TOPLIST -->
</ul>

Rating:


0/5 based on 0 votes. The median rating is 0.

Submitted: 09/28/09 (Edited 09/28/09)

Description: How to display a list of categories and subcategories, anywhere.

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

Previous Article | Next Article

Features Showcase Purchase Services Resources Support