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, ...Skinning question - placement of image files?Skinning question - placement of image files?
Previous
 
Next
New Post
3/1/2007 9:09 PM
 

I just built (most) of my first skin.  Skinning is a pretty cool technological approach!

I have a 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?

 

 
New Post
3/2/2007 2:55 AM
 

I suppose it is a personal skin (as oppsed to one you offer for sale), so I would suggest a place in your portal directory:  "/portals/X/images/imagename", where X is your portalID. In you ascx you can refer to:

"/portals/X/images/imagename"

in your css you need to use: "http://www.yourdomain.com/portals/X/images/imagename"

Peter


Peter Schotman
Cestus Websites voor DotNetNuke oplossingen in Nederland
Contact us for your custom design and skinning work.
 
New Post
3/2/2007 7:34 AM
 

I don't plan to sell it, but I do plan to give it away.  It's oriented towards a club I'm in, and they have branches all over.  So, I am also interested in making things as easy as possible for the skin installer - the user, not the program:), as not all of them will be very technical.

 
New Post
3/2/2007 3:11 PM
 

In this case I would opt for multiple copies of the images, as the skin installer only installs in the skin and container directory.

Peter


Peter Schotman
Cestus Websites voor DotNetNuke oplossingen in Nederland
Contact us for your custom design and skinning work.
 
New Post
3/2/2007 3:35 PM
 

I would place the images in a module folder and reference them all there.

When you package your module use a parent folder  that all your modules get installed into, and inside that folder have an /images folder that all your modules, skins, containers, etc. can reference.

I name this parent folder with my company name, so under /DesktopModules/Snapsis/Images I will have all the shared images.

If I install create another module it will be installed in the same company folder so then I might have /DesktopModules/Snapsis/PageBlaster.

From the folder of the PageBlaster module the relative path to my shared images folder would be src="<%=ModulePath%>../images/shared-image.gif"

For Skins, the folder path is either /Portals/_default/[Skins or Containers] or /Portals/nn/[Skins or Containers] (where nn is portal number) which means they are at the same "depth" so I can find the find the shared images folder from the skin by going back three folders like so:

From any Skin the the relative path to my shared images folder would be src="<%=SkinPath%>../../../DesktopModules/Snapsis/Images/shared-image.gif"

In a .css file from the Skin or Container you are automatically referencing from the physical location of the css file so you would just need something like:
background-url:(../../../DesktopModules/Snapsis/Images/shared-image.gif);

Or if you are not running in a virtual folder you could also just always reference from the root of your website with src="/DesktopModules/Snapsis/Images/shared-image.gif"


DotNetNuke Modules from Snapsis.com
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Skinning question - placement of image files?Skinning question - placement of image files?


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