I'm trying to create a context based menu and would to display(upon user click) the parent category, selected category and the first level children of the selected category.

parent category
selected category
{child categories}

Selected category is determined by attribute value and that works.

and what is your question?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.