View Single Post
  #1  
Old 05-26-2008, 12:21 PM
  pairodimes's Avatar 
pairodimes pairodimes is offline
 

Advanced Member
  
Join Date: Dec 2007
Posts: 50
 

Default Display a list of Subcategories from a Specific Category

I have a really customized categories.tpl

The main reason is because I want to limit what people see on each page as far as category pages are concerned.

I use things like:

{if $cat eq 33 or $current_category.parentid eq 33}
...all my hand crafted links...
{/if}

but I would really like to automate the building of these links -
do you know of a simple way to loop through all Subcategories in a specific Category then display them in a simple list?

ex: loop through all subcategories that exist in category 33 and display:
<li class="subCategoryLink"><a href="home.php?cat=34">Subcategory Name</li>

I tried to follow some other threads but they seem to be way overr the top because they are trying to make this a gloabl category listing template. I really want to keep my specific to each category page.

Any help would be great.
__________________
------
Brian

Portland web design / development
X-Cart 4.1.9 (a few carts)
X-Cart 4.2.0 (1 cart so far)
Reply With Quote