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, ...Include Image in SkinInclude Image in Skin
Previous
 
Next
New Post
6/16/2008 1:00 PM
 

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 1:07 PM
 

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

will add the myimage.gif image from the skin folder

 
New Post
6/16/2008 1:25 PM
 

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 1:45 PM
 

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 3:19 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)

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Include Image in SkinInclude Image in Skin


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