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 ForumsForm and ListForm and ListUDT CSS for “Normal UDT_Table*”UDT CSS for “Normal UDT_Table*”
Previous
 
Next
New Post
2/8/2007 6:05 AM
 
I've been experimenting with the UDT module and I'm delighted to see how it's improved in the latest release.
I want to give my site content editor permission to manage tables of sports fixtures and results. This module could save me so much time and be a real hit with the user.

However, I am having some trouble getting the table to look how I want it. I'm using the DataGrid styles. e.g

.DataGrid_Item
{
background-color:#c9d4e6;
color: black;
font-family: Tahoma, Arial, Helvetica;
font-size: 12px;
font-weight: normal;
}
.DataGrid_AlternatingItem
{
background-color:#c9d4e6;
color: black;
font-family: Tahoma, Arial, Helvetica;
font-size: 12px;
font-weight: normal;
}
.DataGrid_Header
{
background-color:white;
color: black;
font-family: Georgia
font-size: 12px;
font-weight: normal;
}

The rows look great and I can configure as I want. However, the col headers do not render as defined in .DataGrid_Header. Looking at the returned HTML this is prob because the headers are in a tag and are also enclosed by anchor tags and take on the look of the portal anchor styles.

Am I missing something? All is want is bold headers (I don't even need sort). Can't find a way to turn off sort either.
I've tried the table style as well but get the same result.

Any ideas? Do I have to learn XSL?

Also, I'd like to use a background image for the grid. Can I do this with a CSS background?

Angus

"if the only tool you have is a hammer you tend to see every problem as a nail" http://www.carawaydesign.com
 
New Post
2/8/2007 2:08 PM
 

Angus, I will have a look at.

In the mean time have a look at BasicTable.xsl. It looks like the default grid, but you could alter the html inside to fullfill your needs. No real need to learn xsl, just scan for the html inside.

 
New Post
2/8/2007 5:52 PM
 
I think my previous post should have read something like 'the returned HTML is in a TD tag. Hence the table headers are not getting the header styles applied'.

I gave up with the grid and table methods in the end and moved onto xsl:

I played with BasicTable.xsl for a while and was able to get near where I neeeded. However, when I apply a border to the table and am not logged in as 'admin' I find that the col for the edit buttons is still displayed. i.e. the borders are visible even though there is nothing to show. This includes the field headers and it looks awful.

I can't work out how to strip out this field and display it only when logged in as a user with edit permissions.

Another issue that i had with the module was when I set show container=false the 'add row' option is not available. Can this be changed? Should functionality be lost by hiding the container?

This module is so close to being such a great tool for CMS. I really hope these little details can be dealt with. I noticed on Gemini that there have been many changes checked in since the last release. Any idea when the new version will be out?

thanks for such great work

Angus

"if the only tool you have is a hammer you tend to see every problem as a nail" http://www.carawaydesign.com
 
New Post
2/13/2007 4:51 AM
 

Well, I've been having some fun with this..

I found the CSS table declaration:  empty-cells: hide;

and have tried appying this to the table and it works in that it gets rid of the borders for the empty cells. However, if you have applied a background color to the table cell then you get the color and not the border, which looks awful.  As far as I can find out: CSS2.1 states explicity that the background color and border should be hidden.  However, I have also found that IE7 and Firefox do not support empty-cells fully but they do 'almost' support CSS 2.0 which doesn't state explicity what should be hidden for empty cells.  In IE7 and Firefox if you set the empty-cells to hidden you get no borders but you do get the background color. Why partially support a property?  When will it be supported?

I can hear the phone call to the client in my head, "what are those blocks of color at the left of the table?", "errrm, sorry, but you'll have to put up with those little blocks of color at the start of the table until Microsoft can get around to supporting CSS 2.1."

In frustration I've been trying to build an xsl layout without a table, using <DIV> tags and f'loat' with CSS but it's not easy either.  But if I get something useful together I'll post it here.

Otherwise I'm jumping in the Thames.

Angus

 



"if the only tool you have is a hammer you tend to see every problem as a nail" http://www.carawaydesign.com
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListUDT CSS for “Normal UDT_Table*”UDT CSS for “Normal UDT_Table*”


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