Display in table
| Project: | CCK Extras |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
It would be great to have an additional display type for CCK fields of 'Tabular' in addition to the defaults of Default, Plain Text & Trimmed.
Essentially this would display the label in the first column and the value in the second column. In the case of multiple-value fields it would probably be best to display each value within that single cell, although other options could be additional columns or rows.
Further, there should be some code to combine adjacent fields within the same group into one single table.
My motivation for this is that I have a content type where each node has a bunch of stats that I would like to display neatly in a table, with decent spacing and all the values aligned vertically. As it stands at the moment the best I can achieve is to set the label to Inline and I get something like the following, which isn't very prety:
Name: Fred
Age: 22
A long label: some data
I can't provide an example of this tabulated as is not allowed but I think I've explained myself sufficiently?
