Any help on this would be appreciated....
I'm trying to present 2 drop downs on our home page:
1. A drop down to show all main categories
No probs. Got this working with some help from this forum. Code looks like this:
Code:
<select name="site" size=1 class="inputfield">
<option value="">Go to....
{section name=cat_num loop=$categories}
<option value="home.php?cat={$categories[cat_num].categoryid}">{$categories[cat_num].category}
{/section}
</select>
..and it renders like this:
http://www.groovemedia.co.uk/temp/dd_example1.gif
2. Sub-categories within only one specific main category
This is where it gets tricky. I have one main category called 'By Design'. Within this category are many sub-cats. i.e.:
..By Design
...................Anya
...................Bibi
...................Cari
...and what i'd like to do is to generate a drop down (as per #1 above), but to only get the subcats within the main 'By Design' category.
Anyone got any pointers?
Cheers,