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

Thread: Menu with only categories in ML9

  1. #1
    Sarky is offline Member
    Join Date
    May 2006
    Location
    The Netherlands
    Posts
    74

    Question Menu with only categories in ML9

    Hi all,

    In previous versions it was possible to show the main categories without the first node "Categories" by using (!menu.Categories0!)

    Is it possible to still do that? I have 2 main categories and those are the categories I want to show in the menu. They should be expandable to show more categories.


    Thnx!
    Regards,

    Inge van Sark
    BitWise

    Using ML 8.0 VB and ML 9.0 VB

  2. #2
    cjbarth is offline Senior Member
    Join Date
    Oct 2008
    Posts
    392

    Default

    I just added additional layers to my menu and then I ran the menu flattening code that you see at the bottom of this post:

    http://forums.aspdotnetstorefront.co...31&postcount=4
    ML9.3.1.1
    SQL 2012 Express
    VS 2010
    Azure VM

  3. #3
    Sarky is offline Member
    Join Date
    May 2006
    Location
    The Netherlands
    Posts
    74

    Default Why layers, I want to use the standard menu structure

    Menu is build like this

    Home
    Categories
    Cat 1
    Cat 2


    Simply what I want is this

    Cat 1
    Cat 2

    When I delete the home node, the categories don't work anymore.
    If I add 0 to the categorie call, it won't work either.
    Regards,

    Inge van Sark
    BitWise

    Using ML 8.0 VB and ML 9.0 VB

  4. #4
    cjbarth is offline Senior Member
    Join Date
    Oct 2008
    Posts
    392

    Default

    Note the menu XML below. I then run the menu reducing code three times which puts the categories at the root level along with my CustomerService menu.

    Code:
    <xsl:template match="/">
    	<siteMap>
    		<siteMapNode title="(!menu.Home!)"  url="~/default.aspx">
    			<!-- Titles are predefined entities, the contents are not explicitly set here but runtime they are dynamically populated per entity-->
    			<siteMapNode title="(!menu.Categories!)" type="category" />
    			<!-- These are static links -->
    			<siteMapNode title="CustomerServiceBig" >
    				<siteMapNode title="(!menu.CustomerService!)" url="~/t-service.aspx" >
    					<siteMapNode title="(!menu.YourAccount!)" url="~/account.aspx" />
    					<siteMapNode title="(!menu.FAQs!)" url="~/t-faq.aspx" />
    					<siteMapNode title="(!menu.PolicyReturns!)" url="~/t-returns.aspx" />
    					<siteMapNode title="(!menu.Shipping!)" url="~/t-shipping.aspx" />
    					<siteMapNode title="(!menu.Contact!)" url="~/t-contact.aspx" />
    					<siteMapNode title="(!menu.PolicyPrivacy!)" url="~/t-privacy.aspx" />
    					<siteMapNode title="(!menu.PolicySecurity!)" url="~/t-security.aspx" />
    				</siteMapNode>
    			</siteMapNode>
    		</siteMapNode>					
    	</siteMap>
    </xsl:template>
    ML9.3.1.1
    SQL 2012 Express
    VS 2010
    Azure VM

  5. #5
    qinfu is offline Junior Member
    Join Date
    Jun 2010
    Posts
    10

    Default display root alignment

    I want to code or logic display all root categories align horizonal men on the top of a page. All subcategories are became submenu or menu items in dropdown. (!menu.categories0!) in older version, what is corresponding declarative in version 9 to display root categories? Thanks.