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, ...Is there any path assignment can be used by skin.css?? Is there any path assignment can be used by skin.css??
Previous
 
Next
New Post
9/18/2006 7:08 PM
 

lets say you have 40 schools, each with own color/banner but everything else is consistent.
whats your choices?

1)40 different css files? setting your link dynamically?

2)Keeping your styles in the ascx skin? and doing it dynamically

Either one isnt a good option but due to performance issues number 1 is best.

 


DotNetNuke Search Engine
ASP.Net Search Engine
Email me to add your favorite sites to the search List.
 
New Post
9/19/2006 12:22 AM
 

With 40 different schools, wouldn't you have 40 different portals?  Or at least 40 different pages that could have their own skins?

Here's another method that is kind of like your #2 for mixing in dynamic changes with a background style:

http://blogs.snapsis.com/PermaLink,guid,105f8d79-ffbc-4859-836c-b747364fa59c.aspx

Also remember that you can have your 40 different skins in one skin folder and keep the same base CSS (skin.css) with your changes in css files for each skin that matches the skin name

for example skin1.ascx will automatically link in skin1.css


DotNetNuke Modules from Snapsis.com
 
New Post
9/19/2006 9:39 AM
 

yes 40 different portals, but if you do 40 different skins and you want them to keep the same feel but different look then any changes would be a major pain. and error prone.


DotNetNuke Search Engine
ASP.Net Search Engine
Email me to add your favorite sites to the search List.
 
New Post
2/2/2007 7:06 PM
 
I know this is an old post but still....
There is a solution for the "school" problem you are mentioning...
Use this in your ascx file:

<div class="<% = PortalSettings.PortalName %> skinselector">
    put the rest of the skin here
</div>


OR

<div class="<% = 'Portal_' & PortalSettings.PortalID %> skinselector">
    put the rest of the skin here
</div>


Now you can use the portalname or the portalId to define spectific CSS for each portal in one CSS file.
There's one problem if you use the portalname, you will have to replace invalid characters and spaces in the portal's name... (with a script in the ascx page) or it will not work.

You could also load an extra CSS file based on the portal's name or ID I think...
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Is there any path assignment can be used by skin.css?? Is there any path assignment can be used by skin.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