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, ...dinamically set the starttabid for DNNMenudinamically set the starttabid for DNNMenu
Previous
 
Next
New Post
3/8/2008 2:28 AM
 

hallo the people I am trying to dinamically set the starttabid for the dnnmenu, something like this. But this doesn't work. Someone has another idea? Thanks

   <dnn:Menu id="dnnSubMenu" runat="server"
    ControlOrientation="vertical"
    Level="child"
    StartTabId="<%=PortalSettings.ActiveTab.BreadCrumbs(1).TabID%>"
    usearrows="false"
    userootbreadcrumbarrow="false"
    SeparatorHTML = "&lt;br /&gt;"
    CssControl="SubMenu"
    CssContainerRoot="SubMenu_RootContainer"
    CssContainerSub="SubMenu_Out"
     MouseOutHideDelay = "750"
    CssNode="SubMenu_Item"
    CssNodeRoot="SubMenu_ItemRoot"
    CSSBreadCrumbRoot="SubMenu_ItemRoot"
    CSSBreadCrumbSub="SubMenu_Item"
    CssNodeHoverRoot="SubMenu_RootItemHover"
    CssNodeHoverSub="SubMenu_SubItemHover"
    CssNodeSelectedRoot="SubMenu_ItemRootSelected"
    CssNodeSelectedSub="SubMenu_ItemSelectedSub"
    CssIcon="SubMenu_Hide"
    CSSIndicateChildSub="SubMenu_Hide"
    CSSIndicateChildRoot="SubMenu_Hide"
    MouseOverDisplay="None"
    />

 
New Post
3/8/2008 8:36 AM
 

StartTabId="<%#PortalSettings.ActiveTab.BreadCrumbs(1).TabID%>" should help...

 
New Post
6/11/2009 3:17 PM
 

Thanks for that info.

I am trying to do the same thing as the original poster, but I need my menu to show the children of the active tab.  I tried the above method, and that displays the siblings of the active tab, not the children.  My thought was that changing the tag to StartTabId="<%#PortalSettings.ActiveTab.BreadCrumbs(2).TabID%>" would help, but all that did was make the menu show the root tabs and gave me the message: Could Not Load Skin: /Portals/_default/Skins/CorporateHousingSkin/Skin_citystate.ascx Error: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index.

What do I need to do to get the menu to show the children of the active tab?

 
New Post
6/11/2009 3:47 PM
 

Nevermind my post.. I missed something in the first post and now see what I need to do.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...dinamically set the starttabid for DNNMenudinamically set the starttabid for DNNMenu


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