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, ...Question about .ascx - .css relatiuonshipQuestion about .ascx - .css relatiuonship
Previous
 
Next
New Post
5/1/2018 5:32 PM
 
Hi, I just have a simple question - In our older DNN install (which has been upgraded since DNN 6 and is now running DNN 9.1.1), whenever I would create a new skin file ('mynewskin.ascx') , I could also create a matching css file ('mynewskin.css') in the same skin folder, and the css would automatically apply to the ascx file.

In my newer installation DNN 9.1.1 intranet website, the same behavior doesn't occur. If I create a 'mynewskin.ascx' file and than a 'mynewskin.css' file, the css doesnt get applied to the skin like in the other site.

In the original site, I can't see where the .ascx file is calling the css file. Can anyone explain to me how the ascx - css relationship works?
Thanks!
Tom
 
New Post
5/2/2018 6:22 AM
 
Tom,

I can confirm that, also in DNN 9.2.0 - I created a "Home.css" in the Xcillion skin with only this line:

.Normal {color: Fuchsia !important;}

Inspecting the cource code, Home.css is referenced. But nothing changed on a page using this skin. I added this line to the skin.css file, and the text color changed as expected.

Please create a ticket (https://support.dnnsoftware.com) to report this behaviour.

Happy DNNing!
Michael


Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
 
New Post
5/2/2018 9:18 AM
 
Tom wrote:
Hi, I just have a simple question - In our older DNN install (which has been upgraded since DNN 6 and is now running DNN 9.1.1), whenever I would create a new skin file ('mynewskin.ascx') , I could also create a matching css file ('mynewskin.css') in the same skin folder, and the css would automatically apply to the ascx file.

In my newer installation DNN 9.1.1 intranet website, the same behavior doesn't occur. If I create a 'mynewskin.ascx' file and than a 'mynewskin.css' file, the css doesnt get applied to the skin like in the other site.

In the original site, I can't see where the .ascx file is calling the css file. Can anyone explain to me how the ascx - css relationship works?
Thanks!
Tom

 Did you restart DNN? You need to restart it for the style sheet to be picked up (it's cached for performance reasons).

I just tested it an d it seems to work fine.

 
New Post
5/2/2018 1:11 PM
 
Timo,

thanks for that. After a restart it worked as expected, but I wonder why the change in the skin.css was working immediately as the change in the Home.css was not.

Happy DNNing!
Michael

Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
 
New Post
5/2/2018 1:16 PM
 
Michael Tobisch wrote:
Timo,

thanks for that. After a restart it worked as expected, but I wonder why the change in the skin.css was working immediately as the change in the Home.css was not.

Happy DNNing!
Michael

Must have been caching of some kind..

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Question about .ascx - .css relatiuonshipQuestion about .ascx - .css relatiuonship


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