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, ...Filepaths in DNN skins (css)Filepaths in DNN skins (css)
Previous
 
Next
New Post
4/11/2012 6:10 AM
 

Hi,

I'm creating my first skin based on a couple of templates, but i'm having issues with filepaths and was wondering if anyone could help?

 Basically, it appears that if i use a relative filepath in the skin (which will be in Installation/portals/_default/skins) the path the browser uses becomes relative to the root installation

 I've fixed this in the ascx file by using src="<%=SkinPath%>/images/logo.png" for example,

 But i'm really struggling to do the same with paths in the css file.

i have 2 folders, images and css in the main folder, and i want to use the an image in the images folder as a backround in a css file in the css folder

I've tried using "../" to traverse directories, i've also tried putting the images folder inside the css folder, but relative paths just don't seem to work!

I'm developing locally to deploy to another server, so would like to keep as many assets together as possible, so would prefer not to create folders specifically for the skin in the root of the site.

 Any ideas would be most appreciated!!

Cheers,

 John

 

 
New Post
4/11/2012 6:30 AM
 

File paths in CSS are relative to the file itself, so you can simply use

images/myfile.png

If there an images folder in your skin folder

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Filepaths in DNN skins (css)Filepaths in DNN skins (css)


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