configuring the menu bar
Last Post 10/07/2010 7:51 AM by kevinpj. 4 Replies.
Author Messages
kevinpj
Nuke Ace
Nuke Ace
Posts:54


--
10/06/2010 8:04 AM  
i have two skins in my pjct. i want to exclude a page from the menubar using skin1 and need to include the same page in the menu bar using skin2 in page2. how can i do that.
Joseph Craig
DNN MVP
Posts:11667


--
10/06/2010 10:32 AM  
The easiest way to do that is by using a menu system that allows you to include and/or exclude pages in the configuration.

DDR menu from DNNGarden.com is one such menu. It is free. And, if you install it, it's a direct upgrade to the DNN Nav menu. That means that your CSS styles don't need to change at all. In the skin, you just add attributes to include/exclude.

Joe Craig, Patapsco Research Group
Complete DNN Support
kevinpj
Nuke Ace
Nuke Ace
Posts:54


--
10/07/2010 5:32 AM  
Dear Craig,
I added the DDR Menu. But I dont know how to set the include/exclude option for the page.
Can you please give an example for that?

Joseph Craig
DNN MVP
Posts:11667


--
10/07/2010 6:57 AM  
Take a look here for some of the "standard options" for DDR Menu.

You want to use IncludeNodes or ExcludeNodes.  So, within the tag that defines the menu, add an attribut like this:


       IncludeNodes = "Admin, Host"

That will exclude the Admin and Host pages from the menu.  If there are other pages, include them in the list.

Joe Craig, Patapsco Research Group
Complete DNN Support
kevinpj
Nuke Ace
Nuke Ace
Posts:54


--
10/07/2010 7:51 AM  
Craig sorry for disturbing you again, I am very new to this..
These are some part of my 3 skin files. I have created a skin for my project. Now i need to add include/exclude option using DDR menu. I have added the DDR menu as a module in DNN. I gone through the documents which is given in the dnngarden.com and I tried,but its not working for me. what all changes I need to do in these 3 files and any other changes need to make in somewhere else?
If I need to generate an xml for menu how to make that?
Can you please give me solution for this..


This is the [NAV] part in my skin.htm


                       
                           
                               
                               
                           
                       

                                    [NAV].

                                    [SEARCH][LANGUAGE]

                       
                           
                               
                               
                               
                           
                       

                                    [CURRENTDATE]

                                    [BREADCRUMB]

                                    [USER] [LOGIN]


This is  [NAV] part in skin.xml



        [NAV]
       
           
                ProviderName
                DDRMenuNavigationProvider
           

           
                CSSContainerSub
                Main_DNNMenu_ContainerSub
           

           
                CSSNodeRoot
                Main_DNNMenu_NodeRoot
           

           
                CSSNode
                Main_DNNMenu_Node
           

           
                CSSNodeHover
                Main_DNNMenu_NodeHover
           

       
   



This is first part in skin.ascx

<%@ Control language="vb" AutoEventWireup="false" Explicit="True" Inherits="DotNetNuke.UI.Skins.Skin" %>
<%@ Register TagPrefix="dnn" TagName="LOGO" Src="~/Admin/Skins/Logo.ascx" %>
<%@ Register TagPrefix="dnn" TagName="BANNER" Src="~/Admin/Skins/Banner.ascx" %>
<%@ Register TagPrefix="dnn" TagName="NAV" Src="~/Admin/Skins/Nav.ascx" %>
<%@ Register TagPrefix="dnn" TagName="SEARCH" Src="~/Admin/Skins/Search.ascx" %>
<%@ Register TagPrefix="dnn" TagName="LANGUAGE" Src="~/Admin/Skins/Language.ascx" %>
<%@ Register TagPrefix="dnn" TagName="CURRENTDATE" Src="~/Admin/Skins/CurrentDate.ascx" %>
<%@ Register TagPrefix="dnn" TagName="BREADCRUMB" Src="~/Admin/Skins/BreadCrumb.ascx" %>
<%@ Register TagPrefix="dnn" TagName="USER" Src="~/Admin/Skins/User.ascx" %>
<%@ Register TagPrefix="dnn" TagName="LOGIN" Src="~/Admin/Skins/Login.ascx" %>
<%@ Register TagPrefix="dnn" TagName="COPYRIGHT" Src="~/Admin/Skins/Copyright.ascx" %>
<%@ Register TagPrefix="dnn" TagName="TERMS" Src="~/Admin/Skins/Terms.ascx" %>
<%@ Register TagPrefix="dnn" TagName="PRIVACY" Src="~/Admin/Skins/Privacy.ascx" %>
<%@ Register TagPrefix="dnn" TagName="DOTNETNUKE" Src="~/Admin/Skins/DotNetNuke.ascx" %>



This is [NAV] part in skin.ascx


                       
                           
                               
                               

                           

                       

                                    <dnn:NAV runat="server" id="dnnNAV" />.

                                    ShowSite="False" Submit="Find This" /><dnn:LANGUAGE runat="server" id="dnnLANGUAGE" />



---