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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsDocumentsDocumentscss issue css issue
Previous
 
Next
New Post
2/16/2009 5:51 PM
 

Hi,

In my website I have various instances of the Document module. I had downloaded the source for the Document module but couldnt perform much since my query is to do with the width of a <td>.

I want to increase the width of a <td class="titlecell">  for one of the instance of document module  rather than effecting all document modules in  my website, how is this possible.

Currently I use this in my skin css

 .DNN_Documents .TitleCell
{
    font-family: tahoma;
    font-size: 11px;
    font-weight: normal;
    font-style: normal;
    color: #003366;
    width: 80%; (This effects the entire document modules found in the website)
   
}

 

Hope someone can point out some alternative for this.

 

Cheers,

 

 
New Post
2/16/2009 8:09 PM
Accepted Answer 

Gerald,

I'm no CSS guru but try this...

  • Go to the settings for the instance of the Documents Module that you want to change.
  • Under "Advanced Settings" you will find fields for "Header" and "Footer".
  • Here you can place any content that you want rendered before (Header) and after (Footer) the content that the module generates.
  • For Header enter <div class="SomeClassName"> Then for footer enter </div> where "YourClassName" is a unique class name that you are going to wrap around the content of this instance of the module.

  • Now in your stylsheet enter your class as .SomeClassName .DNN_Documents .[FieldName]Header where [FieldName] is the name of the column you want to format (i.e. Title, Owner, Category, etc.

  • Basically this wraps the content of this instance of the Documents module in a div given the class name of "SomeClassName".  Then your style sheet entry formats only the [fieldName]Header class withing the DNN_Documents class within the "SomeClassName" class.  This should work even with multiple Documents module instances on the same page.  Note that between each class in your stylesheet you probably need a blank space (e.g. .SomeClassName _ .DNN_Documents _ .[FieldName]Header where each _ is a blank space.

I hope this helps

 
New Post
2/16/2009 8:54 PM
 

Chuck Rizzio wrote

Gerald,

I'm no CSS guru but try this...

  • Go to the settings for the instance of the Documents Module that you want to change.
  • Under "Advanced Settings" you will find fields for "Header" and "Footer".
  • Here you can place any content that you want rendered before (Header) and after (Footer) the content that the module generates.
  • For Header enter

    Then for footer enter
    where "YourClassName" is a unique class name that you are going to wrap around the content of this instance of the module.

  • Now in your stylsheet enter your class as .SomeClassName .DNN_Documents .[FieldName]Header where [FieldName] is the name of the column you want to format (i.e. Title, Owner, Category, etc.

  • Basically this wraps the content of this instance of the Documents module in a div given the class name of "SomeClassName".  Then your style sheet entry formats only the [fieldName]Header class withing the DNN_Documents class within the "SomeClassName" class.  This should work even with multiple Documents module instances on the same page.  Note that between each class in your stylesheet you probably need a blank space (e.g. .SomeClassName _ .DNN_Documents _ .[FieldName]Header where each _ is a blank space.

I hope this helps

Hi Chuck,

Thanks a lot for your help, just the thing I was looking for and worked as a charm. You were right about the blank spaces too so eventually got it all working :)

Just for show the final product in css

 .Alerts .DNN_Documents .TitleCell
{
    font-family: tahoma;
    font-size: 11px;
    font-weight: normal;
    font-style: normal;
    color: #003366;
    width: 83%;
}

 

Thanks once again :)

 

 
New Post
3/16/2009 4:24 PM
 

Now in your stylsheet enter your class as .SomeClassName .DNN_Documents .[FieldName]Header where [FieldName] is the name of the column you want to format (i.e. Title, Owner, Category, etc.

I tried implementing the custom css styles on the various columns found in the documents module and most of it worked to my expectations, but few of the columns didnt reflect the changes applied to the css class.

The columns in question are Modified Date, Created By, Created Date and Modified Date.

For the other columns which apparently reflects the changes, given below is the css code

.underline .DNN_Documents .TitleHeader, .DescriptionHeader, .Created DateHeader, .DownloadHeader, .OwnerHeader, .CategoryHeader, .SizeHeader, .Modified ByHeader, .ClicksHeader, .Modified DateHeader, .Created ByHeader
{
    font-family: tahoma;
    font-size: 11px;
    font-weight: normal;
    font-style: normal;
    color: #003366;
    padding: 3px;
    border-bottom-style: solid;
    border-bottom-width: 2px;
    border-bottom-color: #E3EDF3;
}

 

Should there be a space between the fields (eg: Modified DateHeader) or should it be an underscore.

 

Thanking you for your time,

 

 

 

 
New Post
3/26/2009 9:36 AM
 

Gerald,

First of all... Apologies not not getting back to you sooner!  I just found your post.  For some reason I didn't get a notification that there was a new post here.

As for your question, I don't have access to the code at the moment so I cant take a look at it.  First I would try just removing the spaces from what you have already, e.g. change "Created DateHeader" to "CreatedDateHeader", etc.  If this doesn't work for the "Modified By" and "Created By" fields it may be because the actual fields in the database are "ModifiedByUserID" and "CreatedByUserID" so try those values.  Let us know the results and we will take it from there.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsDocumentsDocumentscss issue css issue


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