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

HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Edit css file in DNNEdit css file in DNN
Previous
 
Next
New Post
12/8/2016 6:46 PM
 
How can we edit a css file in  desktopmodules/NameOfModule/Theme/mytheme.css?

Now I just RDP into server, either edit in notepad or upload new css file.
However, if/when I can't RDP, how would I access/edit this file through the DNN file manager or whatever?
Logging on as host, does not show you the desktopmodules folders etc.

Overriding in skin.css maybe overkill and have other consequences.
No chance that updating module will over write my changes - vendor out of business.
Reinstalling module would not include this css file unless I add it to manifest.
 
New Post
12/8/2016 11:31 PM
 
I would identify the elements in the module that need to be overridden with custom CSS and do one of the following....

If the module is one place and the amount of CSS is small I may just put it in the header.

If the module is in a few places I would use a page level CSS file.

If the module is all over your site and your site is large then I would have to think about putting the CSS into the skin.

I don't think there are too many other alternatives.

You could go in for modifying the module manifest but I don't see that much of a difference between putting the CSS into the module or elsewhere.

 
New Post
12/9/2016 4:33 AM
 

John,

could you please write a bit about the use-case? If you are talking eg. about the DNN Event module, there is an easy way to customize the theme of the module: In your portal root, you find a folder "DNNEvents/Themes", inside there you can add a new folder holding a CSS file with the same name as the folder (e.g. DNNEvents/Themes/MyFancyCustomTheme/MyFancyCustomTheme.css). You can then select the theme from the Event Module Settings. You can also create the CSS file locally and zip it (the zip file must have the same filename as the theme/CSS file), and upload it there.

This mechanism might be different (or not available) in other modules. If you are developing a module for your own and want to know how it is done in the Events module, I would recommend having a look at the module's source code (and use it :-))

Happy DNNing!
Michael


Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
 
New Post
12/10/2016 4:32 PM
 
The css was for Invenmanager calendar. It and many other modules have 6 css files. Generally speaking, they want to control my font, H1, etc. I don't want 11 different fonts on my website if I am using 11 modules. Overwriting in skin, means I have 11 useless entries, bloating my css and increasing my page load time.

I like to have Home skin with the essential css for every page, Calendar skin will load home + calendar css, Blog skin, etc. I 'gulp' css and js to cut down on # of css and js files and minify, etc. This also gives you control over order of combining css if there are duplicate entries.

I' m thinking I should take css and js files out of the 'module x' manifest before installing and add necessary files to my Webmatrix solution and gulp/recompile the css and js.

However, sometimes you find some css in a module that just doesn't work (for me) and you want a quick and dirty edit. However, there appears to be no access in DNN to desktopmodules/NameofModule/theCss.css files.
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Edit css file in DNNEdit css file 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