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, ...Hack Management for CSS skins & IE7 problemsHack Management for CSS skins & IE7 problems
Previous
 
Next
New Post
3/3/2009 1:25 AM
 

Hi ell since 4.9 there is a special skinobject, all the code on the page is just for doctype and removing the portal and default.css for non admin users so that I dont have to override skinobject or normal or .Head classes that used to mess up designs.

its this one in the header

<%@ Register Src="~/Admin/Skins/Styles.ascx" TagName="STYLES" TagPrefix="dnn" %>

and this one at the bottom of the skin

 <dnn:STYLES runat="server" id="StylesIE"  Name="IE6Up" StyleSheet="ie.css" Condition="GTE IE 6" UseSkinPath="true" />
 

As you can see its very easy you give the stylesheet and the condition  and its gets rendered in the head as a conditional comment block

 
New Post
3/3/2009 1:15 PM
 

Thanks Armand,

Unfortunately this current project is using 4.08.04...  Nonetheless this is very good information.  Can I just get a clarification on the methodology?

So... I need the single register declaration at the top...

Question: Can I have multiple Styles inserted in a ascx page, like this:

<dnn:STYLES runat="server" id="StylesIE"  Name="IE5Down" StyleSheet="ie5.css" Condition="LTE IE 5" UseSkinPath="true" />

<dnn:STYLES runat="server" id="StylesIE"  Name="IE6" StyleSheet="ie6.css" Condition="E IE 6" UseSkinPath="true" />

<dnn:STYLES runat="server" id="StylesIE"  Name="IE7" StyleSheet="ie7.css" Condition="E IE 7" UseSkinPath="true" />

I'm not clear on the syntax...

Really appreciate this information...

 


Rob Poretti - Poretti Productions
 
New Post
3/3/2009 1:33 PM
 

Hi

Just checked out the code and looks liek you can have it the way you descrbed, it just makes 3 conditional commet blocks then. If you dont have 4.9 you could get the code from admin/skins and rebuild it as a simpel standalone skinobject

 

 
New Post
3/3/2009 2:59 PM
 

I have 4.09.01 installed in my Dev server - can I simply copy the ascx file to the Admin/skins folder of the 4.08.04 version and register the component as described?


Rob Poretti - Poretti Productions
 
New Post
3/3/2009 4:35 PM
 

mm you could try and copy the ascx and the ascx.vb and see if that is recognized and will compile when you refresh the app on demand but no guarantees.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Hack Management for CSS skins & IE7 problemsHack Management for CSS skins & IE7 problems


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