Accordion Category Menu


https://forum.kartris.com/Topic3109.aspx
Print Topic | Close Window

By djjohnson - Sun 1 Jun 2014
I have a question on the Accordion Category Menu everything works perfect until I add a sub category to the main category. When I add a subcategory the click on the main category only expands the accordion menu and does not link to the products under the main category. The question I have is this by design or is this a bug, because after I add a subcategory there is no way to get to the products under the main category from the accordion menu.
By djjohnson - Tue 24 Jun 2014
If anyone else needs this behavior here is how I did it. All i Had to to was add the link in the code behind for the Header in CategoryMenuAccordion.vb.

Dim lnkCatName As New HyperLink()
lnkCatName.NavigateUrl = nodeStarting.ChildNodes(numCounter).Url.ToString()
lnkCatName.Text = nodeStarting.ChildNodes(numCounter).Title.ToString()

'link added to pane
acpCategory.HeaderContainer.Controls.Add(lnkCatName)