dotnetnukedotnetnuke-6

how to display in a left menu the child items of main menu


I want to build a site with two menus. The first menu will be in the top pane and the second menu will be in the left pane.

What I am looking for is how to show the child items in the left pane.

For example, for a page with name "testPage" where it has as child menu items "testPageChild1" and "testPageChild2", I want in the left pane to display those child items.

How could I do this?

If there is another way to implement something like this, please let me know.

Thanks


Solution

  • You can do this with your menu, or you can do it with a module as notandy points out. The "console" module is also an option, it will provide links to children of whatever page lyou point to.

    As for doing it within the skin, using the Menu, you need to adjust the "Level" attribute of the Navigation control.

    <%@ Register TagPrefix="dnn" TagName="NAV" Src="~/Admin/Skins/Nav.ascx" %>
    <dnn:NAV id="TopLevel" runat="server" Level="Root" />
    <dnn:NAV id="Child" runat="server" Level="Child" />
    

    and then style accordingly