Latest Register Log In

+ Advanced Search

Details

Category and Subcategory List Anywhere
By
Sep 28, 2009 (Edited Mar 11, 2014)

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>


Did this article fail to fully answer your questions? If so, please ask for clarification.

Your E-mail:
(needed so that you can get your answer!)
Confirm E-mail:
(same as above to prevent typos)
Question(s):
 




Description How to display a list of categories and subcategories, anywhere.
Rating
Views 185 views. Averaging 0 views per day.

Previous Article | Next Article