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 images Holy Grail ?Solpart images Holy Grail ?
Previous
 
Next
New Post
7/5/2007 5:37 AM
 

OK, I have literally searched all over the net to figure out how to implement Solpart with a different image for each item, no matter which level it is at and I think I have the answer.  Problem is I don't know enough  j a v a s c r i p t  or enough about the menu node collection to implement the solution.

So,,, here is my explanation, and perhaps someone can create the code snippet needed to solve this problem, finally, once and for all.  Each page is capable of uploading an image to be used as the "page icon" which then is consumable in the menu as the .MainMenu_MenuIcon property which appears to the left of the menu item when styled in CSS.  I KNOW that image could be accessed through a bit of  j a v a s c r i p t  used IN the CSS file for the background: url(); property for a menu item.

All it would really be doing is using a snippet of  j a v a s c r i p t  to access an image already available to the menu, and having it load that image as the background to an image item.  BUT, with that snippet we could all then have a different image for literally every menu item at every level of the menu.

This would make it SOoooooooo, much easier to implement multiple menus with Solpart, or any other of the menu providers as that same snippet would probably work for all of them IN the CSS for the menu.

Any takers for this challenge?  I will keep working on it, so any suggestions would also be welcome, as well as a complete usable snippet.

Clay

 
New Post
7/10/2007 9:14 AM
 

 
New Post
7/11/2007 9:02 AM
 

Thank you for the response John and the solution in your blog looks pretty neat.  Is all that really necessary though?  I don't mean to be so ignorant of all this, but wouldn't a simple document.write.iconid or something like that work to consume an already existing icon image?

Sorry to be so dense on this, but I have found in the past that if I dig at something like this hard enough, I can discover a simpler way.  Then I would be able to use the icon for image backgrounds on part of the menu level.  I would be able to use the image for the "idle" state, and a color for the hover state, not use it at all on a child, and so on.

In any event, how would I modify your script for the Solpart menu.  I know the push is to use the DNN menu, but Solpart still dominates marketshare where the menu is concerned.

Clay

 
New Post
9/13/2007 7:10 AM
 

I think this solution is perfect but I have an issue in installing it:

After I pasted the code in my skin.ascx file and applied my icons to the right pages they appear next to the "menu - text".

Is this normal or is it also possible to realy have a background - image, so the "menu - text" will display over or underneath the icon.

Thanks in advance

 
New Post
10/13/2008 4:53 AM
 

I think this is normal Stefan...

 

bespoke software uk

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Solpart images Holy Grail ?Solpart images Holy Grail ?


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