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, ...How should I manage local CSS changes?How should I manage local CSS changes?
Previous
 
Next
New Post
5/4/2008 9:09 AM
 

Hi All,

Maybe I did something stupid...  I have changed the CSS files for a number of the modules on my site.  I did this partly because I wanted different fonts to those supplied and partly to get improved cross browser consistency.  I am very pleased with the result.

Now, with the benefit of 20/20 hindsight I am wondering if I did the right thing.  I am anticipating that when I install the next DNN version it will overwrite all my local changes.

Are there better practices for controlling my local CSS modifications so that I can preserve them more easily at the next upgrade?

Thanks for reading this far.


Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
5/4/2008 12:42 PM
 

Well I would guess on the next upgrade you could modify the Install package to exclude core modules that you have made changes to thus far. The only drawback to this method is that you might not get the new functionality/bug fixes/enhancements associated with the latest core module releases.  My practice has simply been to keep notes of the changes I've made to ccs  files associated with core modules and to rename them before my upgrades.  Once the upgrade is complete, I go back and delete the new ccs files and rename my previous one. Before deleting,  I would compare any new css file with the previous ones as it may contain new classes/selectors that define the newer release.  You also have to be aware of modules that come with pre-defined templates or themes you may have made modifications to, such as the repository module.  There may be bettter ways of doing this so others may chime in and I can learn something to.

Paul

 
New Post
5/4/2008 4:24 PM
 

Hi Paul,

What you suggest outlines my planned strategy.  Speaking as a programmer I don't much like it.  I know from experience how easy it is to miss/regress a change when you do everything manually.

Also speaking as a programmer what I would really like, is to get those files under some kind of version management or source code control system.  I just don't quite see how to do that - although my bones tell me it must be possible.


Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
5/5/2008 9:19 AM
 

I typically just save copies of my CSS files before an upgrade in a seperate name. Once the update is complete I pull both CSS files into a text compare software and have it mix and match for me. Thusly I get my changes back, while allowing for new CSS classes / styles to exsist. Then I typically go back and run through the new CSS file to check for any new classes I need to change to match my current theme. Nothing like setting text to orange just to have a weird class change part of it to green.

 

 
New Post
5/6/2008 1:08 PM
 

One way to manage this would be to enter identical elements in your skin.css and change the CSS there.  That won't get overwritten in an upgrade.

Jeff

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...How should I manage local CSS changes?How should I manage local CSS changes?


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