Goal state: the table headers in my Table View programmatically display the human-readable CCK field labels.

1) I have a CCK content type called "product". The user can create a product, and assign it certain properties, stored in fields.
2) Products are assigned to categories using the Taxonomy system.
3) I have a view that displays all products from a category in a table, so the user can easily compare the properties of multiple similar products.

I'd like to have a header row across the top of the table that uses the human-readable field labels. I know I can hard code these into the $header array and pass it to the theme('table', $header, $rows) statement, but I'd rather write an override function that tracks down the human readable label for each field. Is there some way to achieve this, possibly by using the node_data_field_etc. fullnames that get passed to views_view_table()?

Thank you for this great module, and for this compendious knowledge-base of a community!

Comments

sun’s picture

Status: Active » Closed (won't fix)

Sorry, unfortunately this request is way too specific. Please have a look at the issue queue - Views maintainers are buried already. You might want to try to get further support at http://drupal.org/support. Additionally, the answer to your question might be covered in the handbooks at http://drupal.org/handbook/modules/views already.
If you were able to solve this issue on your own in the meantime, you might want to add the involved steps to this closed issue, so other users searching for a similar solution might find it.