Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Horizontal Menu with SidebarHorizontal Menu with Sidebar
Previous
 
Next
New Post
2/3/2009 10:01 AM
 

Hello,

I need to show just the root elements in the horizontal menu bar. The child items  of the selected (clicked) root item should be shown in a sidebar. I found some components  like JAccordion or Navsuit. But before buying it I wanted to ask you, whether you have experience with these tools. I did not see in live demos, that just  the root elemet is beeing selected in the horizontal bar. Or do you have an other suggestion for realising this? The solution should be compatible with my skins. I use DNN 4.9

Thank you..

MAT 

 

 

 
New Post
2/3/2009 11:49 AM
 

Hi Mat,

yes, this is doable within the STandard dnn:NAV Provider.

I have created the following solution:

Mainmenu (horizontal) Shows only the Root Items

<dnn:NAV ID="MainMenu" runat="server" ControlOrientation="horizontal" ExpandDepth="1"/>

SubMenu (vertical) Shows always the Child Items of the selected Root Item

<dnn:NAV ID="SubMenu" runat="server" ControlOrientation="vertical" Level="child"/>

These Menu's can now be placed within your Skin wherever you like.



Herzliche Grüße aus Hückelhoven
Frank Wahl
www.eagleworx.net

EagleworX.net
 
New Post
2/3/2009 1:56 PM
 

Thanks for your help.. I need to change the styles of he side menu now? Any suggestions where I should start?

Danke ;)

 
New Post
2/4/2009 4:23 AM
 

Hi Mat,

i'll show you a piece of a Skin which i have created for one of my Customers.

Menu definition of the SubMenu within the Skin:

<dnn:NAV runat="server" ID="SubMenu" ProviderName="DNNMenuNavigationProvider" IndicateChildren="true"
                            ControlOrientation="Vertical" CSSNodeRoot="sub_dnnmenu_rootitem" CSSNodeHoverRoot="sub_dnnmenu_rootitem_hover"
                            CSSNodeSelectedRoot="sub_dnnmenu_rootitem_selected" CSSBreadCrumbRoot="sub_dnnmenu_rootitem_selected"
                            CSSContainerSub="sub_dnnmenu_submenu" CSSNodeHoverSub="sub_dnnmenu_itemhover"
                            CSSNodeSelectedSub="sub_dnnmenu_itemselected" CSSContainerRoot="sub_dnnmenu_container"
                            CSSControl="sub_dnnmenu_bar" CSSNode="sub_dnnmenu_bar" CSSBreak="sub_dnnmenu_break" Level="child"/>

According to this the CSS-Definitions for this Menu:

/*--------- dnn menu style ----------*/
/* sub menu td */
.sub_dnnmenu_bar
{
    cursor:pointer;
    font-size: 11px;
    background-color:transparent;
}

/*  Sub Menu Normal  */
.sub_dnnmenu_rootitem 
{   
    color: #009CE1;
    font-size: 13px;
    font-family: Helvetica,Arial,sans-serif;
    font-weight:bold;    
    text-align:left;
    padding:5px 12px 5px 12px;
    margin-right:1px;
}

/*  Sub menu hover  */
.sub_dnnmenu_rootitem_hover

    color:#000000;
    font-size: 13px;
    font-family: Helvetica,Arial,sans-serif;
    font-weight:bold;
    text-align:left;
    padding:5px 12px 5px 12px;
    margin-right:1px;
}

/*  Sub menu selected  */
.sub_dnnmenu_rootitem_selected
{
    color:#000000;
    font-family: Helvetica,Arial,sans-serif;
    font-weight:bold;
    text-align:left;
    font-size: 13px;
    padding:5px 12px 5px 12px;
    margin-right:1px;
}

/*  SSub Menu Normal */
.sub_dnnmenu_submenu
{
    border:1px solid #00334A;
}

.sub_dnnmenu_submenu td
{
    /*background-color:#E1E8ED;*/
    background-color:#009CE1;
    z-index: 1000;
    font-family: Helvetica,Arial,sans-serif;
    font-size: 12px;
    font-weight:bold;
    text-align:left;
    color:#FFFFFF;
    padding: 0px 5px;
    margin:0px;
}

/*  SUB Menu hover & selected */
.sub_dnnmenu_itemhover td,.sub_dnnmenu_itemselected td  

    font-size: 12px;
    background: #E1F4FC;
    color:#000000;
    font-family: Helvetica,Arial,sans-serif;
    font-weight:bold;
    text-align:left;
    z-index: 1000;
    padding: 0px 5px;
    margin:0px;
}

.sub_dnnmenu_break
{
    height: 2px;
    background-color: #D5E0FF;
}

 

You will recognize that not all CSS Attributes within the Menu definition have counterparts within the CSS File. I just generally tend to fill all of these within the Menu definition, just because i sometimes verget those at a later stage. :-)

Hope this helps!



Herzliche Grüße aus Hückelhoven
Frank Wahl
www.eagleworx.net

EagleworX.net
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Horizontal Menu with SidebarHorizontal Menu with Sidebar


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out