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 - Changing the color of some main menu itemsSolPart Menu - Changing the color of some main menu items
Previous
 
Next
New Post
3/30/2007 9:28 PM
 

Just a thought Jeff, but the menu items derive from the page name in the page settings area.  It isn't fancy, but that will accept html input if you want to style each item separately.  Little bit of work, and not an elegant solution, but it is practical, quick and functional.

Clay

 
New Post
4/2/2007 12:05 AM
 
Hi Clay, do you mean you can put html code in the Page Name field on the Page Management page?
 
New Post
4/2/2007 1:50 AM
 

Jeff Parker wrote
Hi Clay, do you mean you can put html code in the Page Name field on the Page Management page?

That is exactly what I mean.  Not sure what the field size limit is, but you can certainly change the font style and color that way.  You could probably even assign a css class there for that particular item and then manage it in the .css file.

That would obviously also be sort of a kludgy way of hacking what you need to achieve, but hey, what ever gets you what you need.

I have often used this approach to specific module titles as well.  They also accept html code/tags.

Let me know how you make out with this.  But, if you choose to go this way, it brings up another issue of using pre-set pages that you can hide at different times by using the page setting "hidden" or by making them viewable by admins only while you aren't using them.  Then setting the page settings differently to make them viewable during say "specials" on your site, or during holidays, etc.

The DNN system has lots of these little hidden gems of functionality in it.  Just experiment a bit and have some fun.  It's a pretty sound and solid system and unless you are hacking the core, you ought to be fine with this sort of thing.

For example, I have never used this, but you might even be able to use a javascript in a menu item by placing it in the page name field. Then when the page is parsed, it should load and operate. You might even try placind an html tag for to reference a system image for one that could use an animated Gif for a menu item that changes. 

About the only thing I can see that wouldn't work might be asp or asp.net code.  I have never been able to get that to operate proplerly when loaded from a field in a database.

Clay

 
New Post
4/2/2007 2:33 AM
 

Wow. Many thanks Clay. Some discoveries in doing this:

  • The field size is quite small, so lengthy html strings will be truncated
  • If you weren't already, you have to enter text in the Page Title field so the html doesn't end up in the browser's page title - this is a trade-off for me, as I prefer to let DNN automatically create the page titles.

What I actually wanted to do is change the background colour of just the one root menu item. I've been able to change the text colour with <font..., but any ideas of the background colour using this method?

BTW, I'm happy with what happens with mouse-over, etc. for the operations of SolPart - I just wanted one of the menu items to be different in "normal" state.

 
New Post
4/2/2007 3:34 AM
 

Ok,, I played a bit and was able to get a single item's background color to change by using this html tag <span style="background-color: #FF0000" />  It seemed to kill the mouseover function on that item, but other than that ( the mouseovers work for the rest of the items both before and after) the only problem is the length of the field would require a very short menu item name for it to work.  I see no reason why you couldn't use an image the same way, but again the only problem would be the length of the field.

You could change the field length in the DB, but that has it's own set of worms on an upgrade process where I am not sure your extended length fields would survive an upgrade to a newer DNN version. 

But for a quick fix,,,, maybe this helps.

Clay

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...SolPart Menu - Changing the color of some main menu itemsSolPart Menu - Changing the color of some main menu items


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