Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

The best choice for your web site host, email hosting, and domain registration.
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
The best choice for your web site host, email hosting, and domain registration.
 


  Sponsors  

Meet Our Sponsors

SmarterTools
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Make it Hot! ( ...  Solpart images Holy Grail ?
Previous Previous
 
Next Next
New Post 7/5/2007 2:37 AM
User is offline clay
113 posts
9th Ranked


Solpart images Holy Grail ? 

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 6:14 AM
User is offline Jon Henning
1590 posts
www.codeendeavors.com
5th Ranked










Re: Solpart images Holy Grail ? 

http://www.dotnetnuke.com/Community/Blogs/tabid/825/EntryID/1487/Default.aspx


 
New Post 7/11/2007 6:02 AM
User is offline clay
113 posts
9th Ranked


Re: Solpart images Holy Grail ? 

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 4:10 AM
User is offline Stefan
14 posts
10th Ranked


Re: Solpart images Holy Grail ? 

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

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Make it Hot! ( ...  Solpart images Holy Grail ?
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


AfterImage Internet Consulting and SEO Services
AfterImage provides search engine optimization (SEO), Internet consulting and hosting services for the Windows platform (IIS, ASP, SQL Server).
www.afterimage.nl/
Willhite & Sharron Realtors
Exemplary service for your Seattle Real Estate needs. It's what you deserve from your Realtor®!
www.alkihomes.com
Swanzey Internet Group LLC
DotNetNuke design, development, hosting, maintenance, and training. Exclusively DotNetNuke.
www.swanzey.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP