I would like to know a least intrusive way (less impact on anything else) to display CCK field label and value on the same line. By default they span across on different lines, it takes too much space.

thanks in advance.

Comments

vm’s picture

go to administer -> content types
click on manage fields next to the content type you want to change
click on the display fields tab
use the label drop down to adjust as you see fit. (in this case, inline)
save the form

newbuntu’s picture

super, thx a lot!

tmai’s picture

Hello VeryMisunderstood ,

I just want to print field label inline and could not print it out in drupal6.8 although I adjust the label on the drop down box in display fields tab under content type. I could not able to find the way to print field in case it has only one value, so I tried the following code ( for the authorname field):
foreach ((array)$field_authorname as $item) {

print $item['view']

}

and the output is only the value of the field without the label.

Do you know any way?please advise

Thanks
Thuan

vm’s picture

I can't code on the fly. However it seems to me you would need an if / else in your code if it were to work. I've never tried.