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, ...Different Skin - Multiple EnvironmentDifferent Skin - Multiple Environment
Previous
 
Next
New Post
4/26/2010 6:44 PM
 

I would like to use a different skin for MO, UAT, and Production.  When code is moved from MO to Prodction.  I can't exclude the CSS file and images.  I need to setup some type of logic so it recognized which environment it's in and load the correct skin.  

I am not sure this can be done, just thought I would ask. 

 
New Post
4/27/2010 1:24 AM
 

Hi

 

Do you only want to load a different css based on the website you are on or do you actually want to load a complete new skin for each of the domains?

 
New Post
4/27/2010 10:49 AM
 

I need to change the color and the banner.  So I would need to just change the CSS file and one jpg.  And maybe the portal.ascx file.  If I can only change the CSS file, that may work.  Thanks for the help.

 
New Post
4/27/2010 12:33 PM
 

Yes, I need a new CSS file in each environment and a new jpg banner.  I am just changing the color scheme and the home page banner for each environment.

 
New Post
4/27/2010 2:49 PM
 

Jason,

An option would be to create 3 of the same skin layouts with different names, say mo-skin, uat-skin and prod-skin, and then also create their respective CSS files mo-skin.css, uat-skin.css and prod-skin.css which will be loaded last in the stack of skin related CSS files. Within each of the individual css files you can now specify the different settings and these will over-ride the default settings of the skin.css file.

Example css in skin.css file making the background color white:

body#body{
background-color:#fff;
}

example CSS in mo-skin.css making the background blue:

body#body{
background-color:#00f;
}

the same CSS in uat-skin.css making it red:

body#body{
background-color:#f00;
}

You can then use the appropriate skin as the default for each setup and your changes will apply.

Hope this helps.

Rick.



PSDtoDNN - You supply the artwork... we'll build the skins!™
Website | Twitter | YouTube | Skype
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Different Skin - Multiple EnvironmentDifferent Skin - Multiple Environment


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