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, ...Menus using Image chunks instead of Background ColorsMenus using Image chunks instead of Background Colors
Previous
 
Next
New Post
7/9/2007 5:27 PM
 

Hi -

In DNN after looking at the menu nodes javascript and reviewing how the main menu in the portal gets built - I see most DNN sites just use CSS background colors instead of making each menu item more like a button as part of a button row. Where the text of the menu item would determine the overall size of the button as part of the menu button bar.

So with this - which keeps localization possibilities instead of the menu text embedded in each button image, I would like to have the buttons adjust in size depending on the menu item text. This is just for the primary top level menu items. Sub menus would be in a normal submenu dropdown.

To accomplish the menu buttons I split the images into a LEFT,  MIDDLE (repeating)  and RIGHT image pieces. So, the text in the middle node would have the MIDDLE repeating graphic image as defined in a css style class. The left and rights ends would be part of the same node with separate css styles applied - so you basically have 3 span tags next to each other:

<span class="left_end_of_menu_button"/>  
<span class="center_repeating_area_of_menu_button">Menu Item Text</span>
<span class="right_end_of_menu_button"/>

So, each top level menu item is built with this span combination, when pieced together it looks like 1 solid button element. Size of the button grows to fit the Menu Item Text.

I have made this work 50%. But, because I dont totally understand the node structure, the work required to figure the best way to modify the code is difficult... and the layout gets all funky...

I am surprised that the DNN menuing doesnt allow to set image properties like I have done to make chasing and hunting through the code and making adjustments to the nodebuilder.

Is there an easier way to do this? or are there any examples of anyone doing this?

 

thanks,

David

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Menus using Image chunks instead of Background ColorsMenus using Image chunks instead of Background Colors


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