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, ...Cannot get DNN:NAV Menu SeparatorCannot get DNN:NAV Menu Separator
Previous
 
Next
New Post
1/31/2007 12:33 AM
 

I can't seem to get a menu separator between my  menu items using DNN:NAV control with DNNMenuNavigationProvider.

I just want to have a simple | between menu items.

<dnn:NAV runat="server" id="dnnNAV" SeparatorLeftHTML="<img src='/portals/4/skins/gcic/separator1.gif'>" ControlOrientation="Horizontal" ProviderName="DNNMenuNavigationProvider" CSSControl="main_dnnmenu_bar" CSSContainerRoot="main_dnnmenu_container" CSSNode="main_dnnmenu_item" CSSNodeRoot="main_dnnmenu_rootitem" IndicateChildren="true" CSSContainerSub="main_dnnmenu_submenu" CSSBreak="main_dnnmenu_break" CSSNodeHover="main_dnnmenu_itemhover"/>

Can anyone tell me how to achieve this as I am currently pulling my hair out.

Thanks.

 
New Post
1/31/2007 7:31 PM
 
you could even put an image there

skin.xml

< Setting>
    < Name>separator< /Name>
    < Value>< ![CDATA[<  img src="images/menu_sep.gif" border="0" align="absmiddle">]]></Value>
   < /Setting>

or Seperator="![CDATA[<  img src="images/menu_sep.gif" border="0" align="absmiddle">]"

Salar
 
New Post
1/31/2007 7:47 PM
 

Thanks for your reply but it does not work with:

Separator="![CDATA[<img src="images/menu_sep.gif" border="0" align="absmiddle">]"

I also trie SeparatorHTML instead of just Separator in my ascx skin.

 

 
New Post
1/31/2007 8:01 PM
 

I have tryed for years!!

Tryed to get an answer too, Separator... does not work..

More info here.

 
New Post
2/1/2007 11:39 AM
 

ChrisCF wrote

I can't seem to get a menu separator between my  menu items using DNN:NAV control with DNNMenuNavigationProvider.

I just want to have a simple | between menu items.

Can anyone tell me how to achieve this as I am currently pulling my hair out.

Thanks.

I am sorry to hear that you are having these problems.  Looking at the code I see that the DNNMenuNavigationProvider has its separator logic only halfway implemented.  I vaguely remember working on the logic and hitting a roadblock, where I realized that unlike solpart we cannot assume the dnnmenu will render using tables, therefore the logic will need to be quite different.  In fact, the only place that the logic could be added would be in the DNNMenu itself.  Unfortunately, this means you cannot use the separator logic for the DNNMenu until it is enhanced. 

However, if all you need is | to display between your items, you can add the following style to accomplish this (or at
least close to it).

.main_dnnmenu_rootitem
{
    border-right: red 1px solid;
}

I realize that some people are highly critical of documentation that is not 100% accurate.  The nature of development, especially one that is done on a voluntary basis, is that documentation is usually saved as the last item to do, and usually falls off the table and never gets done.  When I wrote the documentation for the navigation providers, I decided to document early on in the development phase.  Unfortunately, for this example, something that was expected to get completed did not, most likely due to time constraints.  And it is the same reason that the documentation did not get updated as well.

I realize to some this answer is not acceptable.  All I can say is if you have the time to research the inconsistencies of any document, it would sure help the community to provide any corrections to the core team and eventually they will make their way into the official documents.

 


 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Cannot get DNN:NAV Menu SeparatorCannot get DNN:NAV Menu Separator


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