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...Administration ...Administration ...Automagic Comment-Header in Combined JS/CSS Files Generated by the Client Dependency Framework?Automagic Comment-Header in Combined JS/CSS Files Generated by the Client Dependency Framework?
Previous
 
Next
New Post
11/6/2011 1:07 PM
 

I have a demo DNN site where we are working on a new skin and some Razor stuff. To push us forward and force a little learning I not only upgraded the site from 6.0.2 to 6.1.0 but also turned on Client Resource Management. Getting JS and CSS files combined is great. We have a few busier sites in the past where we used PageBlaster to do this.

One thing that came up right away was how hard it is to tell where each CSS of JS file starts/ends AND exactly which file it is that you are looking at. We immediately realized that we needed to go find every file that was getting combined and put some kind of start/header comment on it. Here is what we settled on:

/*** /Portals/0/ portal.css ***/

After working with this for a bit and seeing different developers make slightly different choices on what to put in the comment-header, I finally realized - why the heck isn't this an option in Client Resource Management? So I guess I am floating a feature request. Anyone else agree this makes a great deal of sense? I can also see making it a portal admin or site admin (host) option to turn on/off as needed and be off by default.

Maybe it is already there and I just didn't notice it in the docs?

Maybe this idea is moot because there is some way to easily turn on/off the JS/CSS file combining when needed for debugging that I have not found or seen yet?


- Accuraty / Jeremy
 
New Post
11/6/2011 2:15 PM
 
i think thats a good idea-currently I am setting debug=true in web.config to disable CDF when testing items such as this but a header would be handy-please record it as an enhancement request at support.dotnetnuke.com

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
11/6/2011 8:51 PM
 

- Accuraty / Jeremy
 
New Post
11/6/2011 10:50 PM
 
Jeremy Farrance wrote:

Maybe this idea is moot because there is some way to easily turn on/off the JS/CSS file combining when needed for debugging that I have not found or seen yet?

I am working on an admin module for managing the related web.config settings. You can read more about it on the project home page, and download the installable packages as well. The intent is to make these types of configuration options a lot easier to manage directly from the web site.

While I've tested quite a bit locally and am pretty confident the module won't break anything, it's still new so I would highly recommend testing the module out on your staging environment before installing it on production, just to be safe.

Additionally, I've created a logging provider for the underlying ClientDependency Framework (CDF) that powers the Client Resource Management features. What it does is forwards any CDF events to the DNN event viewer. You can also read more about it - and download the installable packages.

Let me know if you have any thoughts/feedback! (And you can open issues on Github for new features/bugs as well if you are so inclined)

Thanks,

Ian


Software Engineer
Co-Founder, dnnGallery
Stack Overflow: Ian Robinson
Twitter: @irobinson
Linked In: Ian Robinson
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Automagic Comment-Header in Combined JS/CSS Files Generated by the Client Dependency Framework?Automagic Comment-Header in Combined JS/CSS Files Generated by the Client Dependency Framework?


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