Hierarchical menus in Product module

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Stom
Forum Members
Forum Members
Posts: 82
Joined: Tue Jul 31, 2007 1:41 am

Hierarchical menus in Product module

Post by Stom »

I have the products module (and those that accompany it) installed and am trying to do the following.

I have hierarchies defined something like this...

Chairs
- Big chairs
- Little chairs
- Banana chairs

Tables
- Big tables
- Little tables
- Pink tables

I've made a template like this for the menu at the left:

Code: Select all

{if isset($child_nodes) && count($child_nodes)}
	<ul id="product-category-list">
	{foreach from=$child_nodes item='node'}      
		 <li class="product-category-list"><a href="{$node.downurl}" title="{$node.name}">{$node.name}</a></li>
	{/foreach}
	</ul>
{/if}
I'm trying to figure out how to make it display the child sections of the currently selected node. Eg, when "Chairs" is selected, I want the big chairs, little chairs and banana chairs sections to be displayed. I don't want the Tables sections to be displayed however.

So display menu should display current nodes' children and siblings, but not nieces and nephews. I think that makes sense.

Many thanks in advance for anyone that takes the time out to help someone that's thoroughly confused by this...
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Hierarchical menus in Product module

Post by Dr.CSS »

What does your tag look like?...
Stom
Forum Members
Forum Members
Posts: 82
Joined: Tue Jul 31, 2007 1:41 am

Re: Hierarchical menus in Product module

Post by Stom »

My tag? Do you mean the method/parameters I'm using to call the module?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Hierarchical menus in Product module

Post by Dr.CSS »

Yea the {tag} you use to call it, including any parameters, etc....
Post Reply

Return to “Modules/Add-Ons”