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 4 of 4

Thread: Top Horizontal Menu

  1. #1
    Krux is offline Junior Member
    Join Date
    Dec 2008
    Posts
    23

    Default Top Horizontal Menu

    I am looking to create a top horizontal menu that traverses from category - > sub-category -> product.

    I have currently have edited the menuData.xml to go from the Category to Sub-category levels, but can not seem to find how to drill the menu down further to the product level.

    Anyone any any suggestions?

  2. #2
    Rob is offline Senior Member
    Join Date
    Aug 2004
    Posts
    3,037

    Default

    doable yes, but you have to emit that additional menu structure Xml in the templatebase.cs (vb) class...as it's all dynamically pulled from the DB. Take a look at the code there, and it's pretty obvious how to add that.
    AspDotNetStorefront
    Shopping Cart

  3. #3
    Krux is offline Junior Member
    Join Date
    Dec 2008
    Posts
    23

    Default

    Can you be a little clearer in this regard? or an example

  4. #4
    Rob is offline Senior Member
    Join Date
    Aug 2004
    Posts
    3,037

    Default

    find this code in templatebase.cs

    Code:
    // Find Categories menu top
    mNode = doc.DocumentElement.SelectSingleNode("//item[@Text='(!" + CommonLogic.IIF(AppLogic.IsAdminSite, "admin.", "") + "menu.Categories!)']");
    mNode = doc.DocumentElement.SelectSingleNode("//item[@Text='(!" + CommonLogic.IIF(AppLogic.IsAdminSite, "admin.", "") + "menu.Categories0!)']");
    AddEntityMenuXsl(doc, "Category", AppLogic.CategoryEntityHelper.m_TblMgr, mNode, 0, "TopItemLook");
    then find the routine AddEntityMenuXsl routine (still in templatebase.cs)

    and add logic there that appends product nodes to the tail node (only) categories. This assumes also that you ONLY have products mapped to tail node categories, which is not necessarily true, or required by the platform. If you're not sure how to do this, it might make a good small project for any of our DevNet partners who eat this up day and night
    AspDotNetStorefront
    Shopping Cart