New module: Views Two Column Table

New module: Views Two Column Table

Posted by stella on Fri, 2009-12-18 20:09 in

For a project I've been working on recently, I needed the ability to have a two column table layout in Views. The idea was to place the field label in the first column, and the field data in the second. I had tried achieving the same layout using the unformatted default layout with some CSS, but was unable to get the label and field data to line up correctly, and so eventually wrote a views plugin to achieve the effect using tables.

The screenshot below shows what the final result looks like.

Example layout
Example layout

Project page: http://drupal.org/project/views_two_column_table
Drupal version: 6.x

have you tried a definition list

When I saw the picture of your table, I immediately thought to a definition list. Have you tried to use a definition list for it? (http://www.w3schools.com/TAGS/tag_dl.asp)

I use this in abundance, perhaps sometimes too often;) Inspired by http://www.maxdesign.com.au/presentation/definition/

Nevertheless I think that a 2 column table can always be used for table data. Very handy now that you've written a views module.

M

Posted by Martijn (not verified) on Thu, 2009-12-31 13:58
About Form

Could you give more exampels?

Posted by Araba Oyunları (not verified) on Thu, 2010-01-21 21:08