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  |  

$4.95 Windows Hosting at Webhost4life.com
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
 


  Sponsors  

Meet Our Sponsors

Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
ExactTarget email software solutions
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Make it Hot! ( ...  Include Image in Skin
Previous Previous
 
Next Next
New Post 6/16/2008 10:00 AM
Unresolved
User is offline jbrisko
3 posts
10th Ranked


Include Image in Skin 

Hello All,

       I'm new to this whole DNN thing, and I'm trying to create a custom skin for my company, I can get images to place from my css stylesheet, however I can't seem to find a variable or some way to insert an image just into the HTML. I am building my skins with .ascx files, I'm a long time C# ASP.NET programmer, so that isn't a problem, can anyone guide me in the right direction. Basically I just need a way to get to the path for the currently loaded skin, and then I can add the image file name.

Hope that makes sense.

 

Thanks in Advance.

Jeremy

 
New Post 6/16/2008 10:07 AM
User is offline Timo Breumelhof
1598 posts
5th Ranked




Re: Include Image in Skin 

<img src="<%=SkinPath%>myimage.gif" alt="myimage" />

will add the myimage.gif image from the skin folder


Timo Breumelhof -- www.searchdotnetnuke.com -- Extended DNN (forum) search
 
New Post 6/16/2008 10:25 AM
User is offline jbrisko
3 posts
10th Ranked


Re: Include Image in Skin 

Thanks for the quick post.... When I do this, I get this error message on the skin....

Could Not Load Skin: /Portals/_default//skins/libertywareskin06-2008_launch_home/libertyware_home.ascx Error: C:\Websites\DotNetNuke\Portals\_default\skins\libertywareskin06-2008_launch_home\LibertyWare_Home.ascx(5): error BC30451: Name 'SkinPath' is not declared.

Any ideas?

Thanks,
         Jeremy

 
New Post 6/16/2008 10:45 AM
User is offline jbrisko
3 posts
10th Ranked


Re: Include Image in Skin 

I figured out that problem, I needed to have the control declarative at the top of the page, but now I get a different error that states...

Critical Error:
The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

Please Help.

Jeremy

 

 
New Post 6/16/2008 12:19 PM
User is offline Timo Breumelhof
1598 posts
5th Ranked




Re: Include Image in Skin 
Modified By Timo Breumelhof  on 6/16/2008 3:20:54 PM)

Eh, where did you add the image? Normally this should work and you shouldn't have to declare anything... Try to add the line I posted to a copy of the  DNN_bleu  skin as a test. (but not inside any of the contenpanes)


Timo Breumelhof -- www.searchdotnetnuke.com -- Extended DNN (forum) search
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Make it Hot! ( ...  Include Image in Skin
 


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.

 


Integral Hosting | DNN only $14.95/month
Experienced .NET hosting on Windows 2003, ASP.NET 1.1 & 2.0, MSSQL with real technical support.
www.integralhosting.com
Aricie
Aricie is one of the French pioneers and experts in DotNetNuke technology.
www.aricie.com
AFUEGO!
Looking for Free DNN Hosting?
www.AFUEGO.com

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