Where is the best place for image files?
  retweet   

Question:

 

I want some of my images to be used in my containers AND my skins AND at various places in installed modules.

 

So, what's the easiest way to do this without having to put the same files in three different directories: container, skin and within the portal?

 

Answer:

 

Put the files in the portal folder and use:
<img src="<%=PortalSettings.HomeDirectory%>images/myimage.gif">
In you skin / container.

This will render:
<img src="portals/X/images/myimage.gif">
Where X = the portal number

Now the admin can change the images you referenced.

 

From this post.



Posted in: DNN Skinning

Comments

No comments so far. Be the first to post one.


Leave a comment

Name (required)

Email (required)

Website

CAPTCHA image
Enter the code shown above: