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, ...How can I setup SeparatorRightHTML token in DNN5 NAVmenu?How can I setup SeparatorRightHTML token in DNN5 NAVmenu?
Previous
 
Next
New Post
4/29/2010 12:56 AM
 

I'm new to DNN and recently I was asked to create a menu look like this website: www.sorted.org.nz/home

But I couldn't figure out a way to configure the NavMenu to achieve that tab effect. I saw in the DNN Skin Objects.pdf there are some token called 'SeparatorRightHTML', 'SeparatorLeftHTML', 'SeparatorLeftHTMLActive' etc. Are these right tokens that I need to use to create the effect? If is how can I configure them?

Could anyone please give me some code examples? It would be very appreciated if you can give me some help!

Thank you very much.

 
New Post
5/5/2010 6:13 PM
 
To achieve a tabbed look you do not need to use the separators.
For the following HTML structure using NAV:

<dnn:NAV runat="server"
                            ID="dnnNAV"
                            ProviderName="DNNMenuNavigationProvider"
                            IndicateChildren="false"
                            ControlOrientation="Horizontal"
                            CSSNodeRoot="main_dnnmenu_rootitem"
                            CSSNodeHoverRoot="main_dnnmenu_rootitem_hover"
                            CSSNodeSelectedRoot="main_dnnmenu_rootitem_selected"
                            CSSBreadCrumbRoot="main_dnnmenu_rootitem_selected"
                            CSSContainerSub="main_dnnmenu_submenu"
                            CSSNodeHoverSub="main_dnnmenu_itemhover"
                            CSSNodeSelectedSub="main_dnnmenu_itemselected"
                            CSSContainerRoot="main_dnnmenu_container"
                            CSSControl="main_dnnmenu_bar"
                            CSSNode="main_dnnmenu_bar"
                            CSSBreak="main_dnnmenu_break" />

apply the following styles in your skin.css (please note that the following styles only draw the background images, and extra styles will be necessary to fully format your tabs):
.main_dnnmenu_rootitem span.txt   { display:inline-block; margin-right:XXpx; }
.main_dnnmenu_rootitem  { background: url('TABRIGHTIMAGE') no-repeat right; }
.main_dnnmenu_rootitem span.txt { background: url('TABLEFTIMAGE') no-repeat; display:block; height:YYpx; }

The purpose is making both spans (.main_dnnmenu_rootitem and .span_txt) overlap, except in width, where span_txt is smaller in width, so that rootitem displays the other corner of the tab.
Let me know if I didn't explain it clearly.

Beatriz Oliveira
Founder of Bind New Media & Design and creator of Bind Tuning
Linked In | Twitter
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...How can I setup SeparatorRightHTML token in DNN5 NAVmenu?How can I setup SeparatorRightHTML token in DNN5 NAVmenu?


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