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, ...Include css for a specific set of module instancesInclude css for a specific set of module instances
Previous
 
Next
New Post
8/8/2009 12:16 PM
 

I guess you all know that there is a module specific class in DNN 5?

Any module gets a class "ModuleNameContent", so Reports will get the class ".DNN_ReportContent"

This would allow you to address all Reports modules or specific ones based on the pane they are in.

Lets say you want your text black, the text in all report modules blue, unless it's in a leftpane (there you want red);

.Normal{color:#000;}

.DNN_ReportContent .Normal{color:#00F;}

.LeftPane .DNN_ReportContent .Normal{color:#F00;}

Or let's say I want to address the reports module on the pages with page name "Work" and "PortFolio"?

Change the skin so it is contained in a div with this class:

<div class="MainContainer <%=PortalSettings.ActiveTab.TabName.ToLower%>">

     ...your skin...

</div>

Now you can address these modules by adding Page specific CSS to your skin.

.work .DNN_ReportContent .Normal, .portfolio.DNN_ReportContent .Normal {color:#F00;}

This is a "hard coded", but it can make things easier for admins if they don't have to change the container or skin.
(the "tolower" is to prevent problems if the page is named "WORK" for instance)

 

 

 
New Post
8/8/2009 2:02 PM
 

There's never any shortage of options in DNN is there? This is very cool - thanks for sharing Timo - I had no idea this was available.

Take care,

Ian


Software Engineer
Co-Founder, dnnGallery
Stack Overflow: Ian Robinson
Twitter: @irobinson
Linked In: Ian Robinson
 
New Post
8/8/2009 2:17 PM
 

I didn't know that.  Thanks... 

Use the 4.9's for production sites... Have only really been testing in the 5's...  That's pretty handy.


Shebang Websites - A product of Mogridge Design
Hey, we're partnered with UntangleMyWeb.com

 
New Post
8/12/2009 7:50 PM
 

Thats a lot of flexibility!  Many thanks for that.

Steve

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Include css for a specific set of module instancesInclude css for a specific set of module instances


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