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, ...solpart menu help neededsolpart menu help needed
Previous
 
Next
New Post
3/25/2009 1:16 PM
 

There is nothing called DNNNavMenu2, however in release 5 a new Webcontrols.dll is shipped version 2. This is not communicated to the public in the release of DotNetNuke 5.0.0 I dont know why but maybe they dont know. What the Menu do or not do you can find out in the code. Bits of information could be found in blogs and books and videos. But as all this information is not syncronizided whith the releases of new versions of DNN its a very hard task to do. I have read all information about the menu including books and none of them have been accurate. So the code is the only sequre source of information for how this CENTRAL part of DNN works (By the way a newer controll is on codeplex)  I have had problems with some of the code too due to the fact that its a lot of javascript involved.

I have tryed to get attention of this "little" problem but with no  luck. I asume however the PE version have good documentation of the menu included in that version.

But the working method is try and test and try and test again :)

First The provider name is

DNNMenuNavigationProvider and the skinobject is NAV nothing ells.

And the standard menu IS NOT Solpartmenu.

 
New Post
3/25/2009 1:28 PM
 

It is possible to make a menu with images before and after the text in tha NAV object. I will here show how you can do it in ascx mode. However you should use the html method in my opinion. (however some new functions in the menu is not included in the core for the html method I asume there is no interest to make this from the Corp)  A working example:

<dnn:NAV runat="server" id="dnnNAV"  ProviderName="DNNMenuNavigationProvider" IndicateChildren="false" ControlOrientation="Horizontal"
                            CSSNodeRoot="navmenu_rootitem"
                            CSSNodeHoverRoot="navmenu_rootitem_hover"
                            CSSNodeSelectedRoot="navmenu_rootitem_selected"
                            CSSBreadCrumbRoot="navmenu_rootitem_selected"
                            CSSContainerSub="navmenu_submenu"
                            CSSNodeHoverSub="navmenu_itemhover"
                            CSSNodeSelectedSub="navmenu_itemselected"
                           
                            SeparatorLeftHTML="<span class=&quot;navmenu_sepleft&quot;>&nbsp;</span>"
                            SeparatorLeftHTMLActive="<span class=&quot;navmenu_seplefton&quot;>&nbsp;</span>"
                            SeparatorRightHTML="<span class=&quot;navmenu_sepright&quot;>&nbsp;</span>"
                            SeparatorRightHTMLActive="<span class=&quot;navmenu_seprighton&quot;>&nbsp;</span>"
                            SeparatorLeftHTMLBreadCrumb="<span class=&quot;navmenu_seplefton&quot;>&nbsp;</span>"
                            SeparatorRightHTMLBreadCrumb="<span class=&quot;navmenu_seprighton&quot;>&nbsp;</span>" >
                            </dnn:NAV>

Corresponding CSS

.navmenu_sepright{
 background: url(../images/resepr.gif) no-repeat right;
  color:#ffffff;
 font-size: 8pt;
 font-weight:bold;
 text-align:center;
 line-height:25px;
 padding:12px 6px 12px 0px;
 
 margin-right: 0px;
}
.navmenu_sepleft{
 background: url(../images/resepl.gif) no-repeat left;
 color:Blue;
 font-size: 8pt;
 font-weight:bold;
 text-align:center;
 line-height:25px;
 padding:12px 0px 12px 6px;
 margin-right:0px;
}

.navmenu_seplefton{
 color:#ffffff;
 font-size: 8pt;
 font-weight:bold;
 text-align:center;
 line-height:25px;
 padding:12px 0px 12px 6px;
 
 margin-right:0px;

 background: url(../images/seplon.gif) no-repeat left;
}
.navmenu_seprighton{
 background: url(../images/sepron.gif) no-repeat right;
 color:#ffffff;
 font-size: 8pt;
 font-weight:bold;
 text-align:center;
 line-height:25px;
 padding:12px 6px 12px 0px;
 
 margin-right:0px;
}
.navmenu_separator{
 
 color:Blue;
 
}
/*--------- dnn menu style ----------*/
/* main menu td */
.main_dnnmenu_bar
{
 cursor: pointer;
 padding: 0px 0px 0px 0px;
 height: 25px;
 background: transparant;

}

/*  Main Menu Normal  */
.navmenu_rootitem 

 color: #fff;
 font-size: 8pt;
 font-weight:bold;  
 text-align:center;
 
 line-height:25px;
 padding:12px 0px 12px 0px;
 margin-right:0px;
 background: url(../images/remenu_bg.gif) repeat-x left;}

Its not fully tested in all browsers, and if you have other images the css needs some tweaks but its an example.

Jan

 
New Post
3/25/2009 1:46 PM
 

So, if I am readfing this correctly, these menus are not designed for "button" type images. I have put 2 "menus" on my test site and am close to getting "Menu" to work. Except the Separator images.  If you take a look at my test site, you can see what I am trying to do and might be able to offer some help or advice.

crk.mytechno-weenie.com/dnn

The top menu uses the token [MENU] . I do not have anything in my skin.xml file relating to "Menu". I do have entries for NAV though. So I thought I would try and use the [NAV] token. I have that on the bottom.

Ideally what I'm looking for is a 3 piece button. left -- center with the text and link ----right for each of my menu items.

The dotnetnuke skinning guide mentions "rootmenuitemleftHTML" and a right one as well. This would have done it for me. I hope this makes sense to everyone.

 

Thanks in advance

Glenn

 

 

 

 
New Post
3/25/2009 2:09 PM
 

You should use the token NAV token MENU is Solpart. My example is a 3piece buttom.

The skinning documentation is outdated. GIves a understanding how it works.

 

 
New Post
3/25/2009 2:45 PM
 

OK I think I am understanding now.

Do I put the code you wrote in my "template.aspx" file? And then the CSS goes in the skin.css file ? Is this correct?

If the answer to these questions is "correct" then I have a couple more questions.

If I add this code to the template.aspx file, I will have to contiue using this file for any "skin" changes becuse if I upload a new template.html file, won't it over write the aspx file?

I appreciate all your help

Glenn

 

 

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...solpart menu help neededsolpart menu help needed


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