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, ...Stylesheet ReferenceStylesheet Reference
Previous
 
Next
New Post
6/22/2007 9:35 AM
 
Hello,

I have a question about referencing a stylesheet for a particular skin or container:

Does there need to be a reference () within the actual HTML file for the skin or container? Or will DNN automatically add the reference to the section?

For example, I have

skin.css
myskin.html

Do I need to include a reference within myskin.html to skin.css, if I will be zipping these with my XML and other associated files and then uploading to DNN and applying as a skin?

I have received several affirmative answers (yes I do have to include a reference). However, I have tried it without including the reference and DNN still seems to automatically add the stylesheet link to the header. Intuitively, this is what I would expect.

Can anyone shed some light on this?

Thanks,

Miki
 
New Post
6/22/2007 10:41 AM
 

I never add references to my stylesheet in the skin files, DNN will do it for you with skin.css. If you're using a different filename perhaps you'll need to add a reference.

Also, if you're working in the skins directory directly, and add a skin.css file after uploading your skin you might have to reset your web app in order for DNN to see the CSS file and reference it appropriately.


Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
6/22/2007 2:38 PM
 

Usually, if you have a skin.css file in there, DNN will figure it out. As a matter of fact, several skinning discussions I've seen have reccomended NOT putting in a <style> tag since DNN will be applying the skin.css file. However, in my experience, if you want to have multiple CSS files for multiple skins in one package (ZIP), I've used the following protocol:

skin1.html
skin1.css
skin1.xml

skin2.html
skin2.css
skin2.xml

So and and so forth, usually DNN figures it out and puts the style calls in the right places... however I have started shifting away from this practice as I was having a helluva time keeping all my CSS files updated with any small tweaks so now I am trying to keep everything in a central skin.css file and if more than one skin style is needed, I just put it in a different ZIP.

Just my $0.02...

SB


Wells Doty Jr
Online Content Development
 
New Post
6/22/2007 5:08 PM
 

Here's a rundown on how it works:

DNN will use skin.css if this file name exists in the current skins' directory.
If your skin name is "abracadabra", DNN will also look for "abracadabra.css" and use that as well as skin.css to render the page.
In this way you can keep styles common to a whole package of skins in the skin.css, and only styles that are particular to a certain skin in a separate css file.

So, you can have myskin.html and mydifferentskin.html, and package them up with skin.css, myskin.css and mydifferentskin.css - each skin pulling common styles from skin.css

How's that?

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Stylesheet ReferenceStylesheet Reference


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