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 create tab look menu using DNN NavMenu????How can i create tab look menu using DNN NavMenu????
Previous
 
Next
New Post
4/29/2010 12:58 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
4/29/2010 3:41 AM
 

Victor,

I don't have any code examples to show you but I can explain how it can be done.

If you're using the [NAV] menu with the DNNMenuNavigationProvider it will render the menu items like so:

<span class="mainmenu">
  <span class="mi">
    <span class="icn"></span>
    <span class="txt">Menu Item</span>
  </span>
</span>

One way of achieving the tabbed menu items would be to create 2 graphics; one of the left tab corner and one of the right tab corner plus an extended background wide enough to handle any of the menu items. You won't be able to use a background tile because we only have 2 span elements to apply CSS to.

What you then want to do is display span.mi and span.txt as block elements, float span.mi left, and apply the background images to span.mi and span.txt.

If you're used to working with list menus, there is a way to render the [NAV] this way, but only in the .ascx file. Here's an example created by Timo: http://dnnskinextensions.codeplex.com...

Regards,

Rick.



PSDtoDNN - You supply the artwork... we'll build the skins!™
Website | Twitter | YouTube | Skype
 
New Post
4/30/2010 2:55 AM
 

Check this http://dnnskinextensions.codeplex.com...

I added a simple Tab Menu example to my Menu demo skins.

 
New Post
5/3/2010 11:43 PM
 
Thank you Rick, thank you Timo. I've downloaded the file and will spend some time on it to see if I can achieve that look. Thanks again. :)
 
New Post
5/6/2010 1:25 AM
 
Timo Breumelhof wrote:

Check this http://dnnskinextensions.codeplex.com...

I added a simple Tab Menu example to my Menu demo skins.

 Hi Timo,

Thanks very much for the demo. It's really simple and easy to understand.

I had a look at your '2 menu Hor' skin as well and now I've got a question. Instead of having a sub menu showing all the time, I would like to approach the 2 horizontal menus in another way: when you hover your cursor on to one of the buttons on the main menu, the horizontal sub menu appears underneath the main menu; when you move your cursor away from that button, the sub menu hides. Is there a way to achieve that?

I tried something like:
#MainMenu ul ul { position:absolute; top:10px; left:-30px;}
#MainMenu ul ul li { display: inline-block; padding: 0 20px 0 10px;}

But the submenu is not positioned correctly. Although it is inlined correctly, it only appears underneath the button I pointed on. I would like the sub menu appear underneath the whole main menu no matter which button I'm hovering on. Like the image below:
 
Could you please tell me what exact class I should change in order to do something similar to the image above?

Thanks very much!

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...How can i create tab look menu using DNN NavMenu????How can i create tab look menu using DNN 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