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, ...CSS and its Limitations in DNNCSS and its Limitations in DNN
Previous
 
Next
New Post
7/18/2007 12:47 PM
 

Ok, so I'm a fairly new user of DNN and this forum...so this may have been discussed/addressed previously, but wherever that may have been, I can't find it.

From everything I've seen in DNN, it seems to treat CSS as an afterthought. I come from a tableless layout world where I have no interest in filling my code with completely unnecessary tables. I enjoy the power, nay, the absolute control, of creating and implementing CSS-driven layouts and skins.

With that being said comes my biggest frustration thus far with DotNetNuke.

I would really, really, REALLY like to find a way to disable default.css and portal.css on the portal level. I realize I can "empty" portal.css, but then my DNN portal is just referencing an empty file.

When I create a skin, I use skin.css as my master css file and want to keep it that way, period. That way, if I decide to release a new skin, my old vs. new css don't intermingle and interfere with one another.

What I've found thus far is a good third of my time developing a skin is spent overriding stupidly named classes in default.css.

Again, for those of us (or just me) who design a beefy stylesheet-driven layout, is there a way to just not include default.css and portal.css? It seems like a big waste of time writing overrides for something that [IMO] didn't need to be there in the first place.

Any comments/discussion/further questions/help is greatly appreciated.


Ben Ahlquist
IDEaS Computers
http://www.ideascomputers.com
----------------------
Quality Forum Posts & Replies since 1996.

 
New Post
7/19/2007 9:45 AM
 

I am sure that you could make a few small modifications to the code code to remove the links to default.css and portal.css if you wanted to.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
7/19/2007 9:47 AM
 

Thanks Mitchel, and I'm sure I could too. Problem is, some of my older portals use these, while my newer ones I've made since I've came on at this company do not need them.

Which is why I wish there was a way to "turn them off" at the individual portal level.

Anyone know if and how this can be done?


Ben Ahlquist
IDEaS Computers
http://www.ideascomputers.com
----------------------
Quality Forum Posts & Replies since 1996.

 
New Post
7/19/2007 10:08 AM
 

I know how you feel and have focused on CSS a little myself.

I have a Free CSS Editor for DotNetNuke that combines most of the CSS into one file if you are interested. 

It doesn't remove the link to default.css or portal.css automatically though mainly because that confuses most end users.

For removing the link to the css you can use another free module called PageBlaster.

To remove the link with PageBlaster you would just add a ReplacementRule to the config file like this:

                  <rule>
                    <ruleName>Remove Default.css</ruleName>
                    <searchFor><![CDATA[<link[^>]+default.css[^>]+>]]></searchFor>
                    <replaceWith></replaceWith>
                  </rule>

I also have another optimization I do to decrease the intial size of the CSS sent to the browser on first visit.

Seperate your Admin & Normal CSS for faster initial load times

 

 


DotNetNuke Modules from Snapsis.com
 
New Post
7/19/2007 10:15 AM
 

Thanks for the advise John, I'll dig into those solutions you offered and let you know how things turn out =)


Ben Ahlquist
IDEaS Computers
http://www.ideascomputers.com
----------------------
Quality Forum Posts & Replies since 1996.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...CSS and its Limitations in DNNCSS and its Limitations in DNN


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