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, ...DNN Menu HelpDNN Menu Help
Previous
 
Next
New Post
8/26/2006 8:30 AM
 
Two questions and any help would be appreciated.

Anybody know how to set the cssselected attribute for the dnnmenu/dnnNav menu skin object?  I want the selected tab to remain a certain color after the tab has been selected.  I have tried the following in my ascx file

CSSNodeSelectedRoot="main_dnnmenu_selected"

and added this to my skin.css file

.main_dnnmenu_selected
{
 color: red;
 cursor: default; /* I want the cursor to become a pointer when the page is selected */
}

Also, I have 2 dnnmenu's on my page - one as a horizontal root menu and the other as a left menu that I only want to show the children of the main root menu.  I have the main menu doing what I want, but the 2nd menu shows both parent items and children.  I setup up the properties of the first menu as such:

ExpandDepth="1" PopulateNodesFromClient="false" StartTabId="-1"

What do I need to change/modify in these properties to have the 2nd menu show only the children tabs of the main root menu items?

Thanks,

Packrat


 
New Post
8/27/2006 6:45 PM
 

I'm working on converting my DesignAway skin that uses the active CSS classes to the DNNMenu functions this week. That should provide you with the code.  What slows me down is finding things that don't work and spending the best part of 8 hours on a sunday or after hours, and I'm a bit stretched for time, however, I do have some new staff in who need training... hmmm. .. I think I'll throw them in the deep end today to start looking at it.. I'll be there to throw them a life jacket!

Nina Meiers


Nina Meiers My Little Website
If it's on DNN, I fix, build, deploy, support,skin, host, design, consult, implement, integrate and done since 2003.
Who am I? Just a city chic, having a crack at organic berry farming.. and creating awesome websites.
 
New Post
8/28/2006 2:47 PM
 

Helpdesk,

I'll start by answering the second question.  To display only the child menu of the root site you would want to say start tab=1 and level=child.  If you ommit the starttabid you will then get the children of the current page. 

 

here's the code in my dnn:nav object for the main menu bar, some css classes are unnessecary because the DNNMenu provider does not impliment them. Some of the items I've used but are not implimented are the menu separator, menu arrow, separatorhtml, and the css menubar.  If i switch the property ProviderName=SolPartMenuNavigationProvider then I get access to these extra features but i'd rather stick with the dnnmenu because it does do what I need.

 ID="MainMenu" runat="server"
SeparatorHTML="|"
CSSControl="mainmenu_menubar"
Level="Root"
CSSContainerRoot="mainmenu_menucontainer"
CSSNode="mainmenu_menuitem"
CSSIcon="mainmenu_menuicon"
CSSNodeRoot="mainmenu_menuitem"
CSSContainerSub="mainmenu_submenu"
CSSBreak="mainmenu_menubreak"
CSSNodeHover="mainmenu_menuitemsel"
CSSIndicateChildSub="menu_menuarrow"
CSSSeparator="mainmenu_separator"
CSSIndicateChildRoot="menu_menuarrow_hidden"
MouseOverDisplay="highlight"
PathSystemImage="[APPIMAGEPATH]"
PathImage="[HOMEDIRECTORY]"
ProviderName="DNNMenuNavigationProvider"
IndicateChildren="True"
PopulateNodesFromClient="True"
intDepth="1"

 

One feature that all the DNN navigation implementations are missing which i would like to see added is the "Menu Break" functionality.  A simple line that can be used to break up items in a list. I've used that feature of the solpart menu in non-dnn implimentations but it has been ommitted for dnn nav.  Perhaps it could be a new Page property, IsMenuBreak. I may toy around with this option, i started working on it awhile back but dnn was being updated alot in the past 6 months so i abandoned that project.

Group 1
Group 1
_______
Group 2
Group 2
Group 2

 
New Post
8/28/2006 9:19 PM
 

jhenak,

Did you mean start tab id -1? I tried your suggestion, but it didn't work.  I ended up setting the level attribute to child on my 2nd menu and got what I wanted.  I can't find this attribute represented in Jon's documentation but I assume it is an attribute of dnnmenu since it worked on my site. Anyway, I think I may have found another CSSClass that is a property of the dnnmenu but it does not seems to get applied.  It may be that I have missed something but I'm sure someone will point me in the right direction.  I have been for days trying to get the selected or active tab to remain a certain color after the mouse has moved off of the item.  This is a common navigation practice where color is used as a kind of breadcrumb.  I set the css entry up along with

CSSNodeSelectedRoot="main_dnnmenu_rootmenuitemsel"

my ascx file.  No matter what styles I apply to the css it doesn't effect the selected tab.  Any thoughts?

I like the isMenuBreak page property idea.  Let me know if you have any success.

Packrat 

 
New Post
9/27/2006 6:52 PM
 
helpdesk33 wrote
Two questions and any help would be appreciated.

Anybody know how to set the cssselected attribute for the dnnmenu/dnnNav menu skin object?  I want the selected tab to remain a certain color after the tab has been selected.  I have tried the following in my ascx file

CSSNodeSelectedRoot="main_dnnmenu_selected"

and added this to my skin.css file

.main_dnnmenu_selected
{
 color: red;
 cursor: default; /* I want the cursor to become a pointer when the page is selected */
}



Did you have any luck finding out how to do this?  I believe you are describing the same effect that is currently on the salaro website. Except that you have root-only menus.

If you've had any luck please let me know how you made out.  I've been luckless so far except for the bad kind.
Thanks.

/Brian C
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...DNN Menu HelpDNN Menu Help


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