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...Using Modules a...Using Modules a...CSS for Settings.ascxCSS for Settings.ascx
Previous
 
Next
New Post
6/10/2010 9:39 AM
 
Hi there

I have a Settings.ascx control for a module, for which I need to customize the appearance with additional CSS styles on top of the existing Settings style. The only way so far that I can get my additional styles to be picked up for the custom settings is to add them to the default.css for the whole portal. What would be the best way to add them on a per module basis? I.e. should I put my CSS styles in a separate CSS file within the module, and somehow insert a pointer to that CSS file for when DNN is generating the Settings page, so that it adds my custom settings to the bottom of the Settings page, whilst also picking up my custom CSS files for the controls I have added?

Thanks for your advice.

Regards

 
New Post
6/10/2010 2:28 PM
 
Module specific css definitions should be placed in a style sheet file named "module.css" located in the module's folder under DesktopModules. It will be automatically linked to when any page containing the module is rendered.

Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
6/10/2010 5:07 PM
 
Check out this link for linking a CSS programatically - http://blog.theaccidentalgeek.com/post/2008/07/15/DNN-Tips-amp3b-Tricks-1-Give-your-settings-some-class.aspx Bear in mind that the styles in the Edit mode are probably not going to be needed in view mode and vica versa, so I would warn against using the module.css which is included everywhere you show the module whether it's needed or not. But it is the easist way...

Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...CSS for Settings.ascxCSS for Settings.ascx


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