Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 2 of 2

Thread: horizontal nav

  1. #1
    gatewayboy is offline Junior Member
    Join Date
    Aug 2008
    Posts
    17

    Default horizontal nav

    I needed to remove the left nav on a site I was building. I also customized the horizontal nav. Is there anyway that when my customer adds another category to have it automatically added to the horizontal nav? Or will I have to manually add the category to the horizontal nav?

  2. #2
    George the Great is offline Senior Member
    Join Date
    Nov 2006
    Location
    Cleveland, OH
    Posts
    1,792

    Default

    By default, the horizontal nav menus are built in App_Code/TemplateBase.cs(.vb) based on the existence of (!menu.[entitytype]!) or (!menu.[entitytype]0!) in the skins/Skin_#/menudata.xml file...eg. something like:
    Code:
    <item Text="(!menu.Categories!)" LookId="TopItemLook" />
    or
    Code:
    <item Text="(!menu.Sections0!)" LookId="TopItemLook" />
    If you use the (!menu.[entitytype]0!) format, the menu will automatically add a new menu item for each entity and list its sub-entities underneath (see screenshot below). If you are using the (!menu.[entitytype]!) format, then each new entity is automatically added in the fly-under when hovering over the root menu item.

    If you have customized this in such a way that neither of these formats are used, the best option is going to be to create a custom section in App_Code/TemplateBase.cs(.vb) that takes a custom token in skins/Skin_#/menuData.xml (eg. (!menu.mycustomcategorymenu!)) and then use the code that already writes the default menu data to create some deviation of the menu structure that can pull all of your entities without having to manually add one each time.
    Attached Images Attached Images  
    <a href="http://www.aspdotnetstorefront.com">Shopping Cart Software</a>