Hi:

Can anyone advise me as to how to show the field labels when displaying nodes created with CCK.

Ideally, it would also be able to tag the label and the content with different CSS labels.

Thanks

Comments

KarenS’s picture

The field modules as they are currently configured just return the value with no label (as you have noticed). I have been playing around with a way to allow the admin to format the output. I just created a module for a select box/textfield/radio box (http://drupal.org/node/55002) and in the settings I provide options for how the field would be displayed, including a label and div, a dl, plain, in a table, etc. My thought was that the same formatting options could be added to all the other fields. If you're interested, try out the module I created and provide some feedback on what you think of the way the configuration of the output is designed. If people like it, I can provide a patch for the content module and all the other field modules so they have the same functionality.

codexmas’s picture

Wicked stuff, just reviewed the code for your option module.
Nicely laid out and well planned. I will test it out today and give
some feedback, the label presentation is a great idea.

Gord.

amccann’s picture

Category: support » feature

Sorry for the long delay...this is a great idea.

JonBob’s picture

Status: Active » Fixed

Field labels are now shown by default, and can be very simply suppressed in the theme. The examples distributed with the module show how to do this easily.

Anonymous’s picture

Status: Fixed » Closed (fixed)