how to hide "Legal name:" type labels?

ben soo - December 16, 2007 - 04:15
Project:Fullname field for CCK
Version:5.x-1.4
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

i'm getting displays like this:

Director: Legal name: Michelangelo Antonioni
Writer: Legal name: Michelangelo Antonioni
Legal name: Elio Bartolini

How do i turn off the CCK_fullname labels?

thanks,
b

#1

rconstantine - December 16, 2007 - 08:48

See the Drupal handbook on theming. You can override the theme function with one of your own. I do believe I stated as much in the README in the USAGE section.

See for example http://drupal.org/node/55126

#2

macco - December 16, 2007 - 22:52

See for an example.

#3

ben soo - December 17, 2007 - 18:43

OK! Thanks much rconstantine and macco. i might have enough PHP to fake this. Guess i was hoping there was something configurable that i missed. Is it possible to override cck_fullname_field_formatter() instead of theme_cck_fullname_display()? That's dumb i know, but would for me be the easier proposition.

thanks,
b

#4

rconstantine - December 17, 2007 - 19:18
Status:active» fixed

There's not a way to override cck_fullname_field_formatter() so far as I know. And I doubt the CCK people would even be open to a hook there since you can already override the theme function.

So if the above has you on your way to a solution, I'll mark this as fixed.

#5

ben soo - December 18, 2007 - 12:40

Thanks again. Writing a theme template override function for this use is my project today.

b

#6

Anonymous - January 1, 2008 - 12:43
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

#7

scedwar - March 18, 2008 - 20:12
Status:closed» active

For one of the content types I am using this on, I don't need any themeing and this, IMHO, just adds unnecessary work. I've reopened this as I think it would be far preferable to have the behaviour where if only legal name required (use preferred name = false) then don't display the name type, just output the name. If the user hasn't asked to differentiate between legal and preferred names, then I can't see a reason why anyone viewing the node would ever want to see the label.

#8

rconstantine - March 20, 2008 - 05:44
Category:support request» feature request

good idea

 
 

Drupal is a registered trademark of Dries Buytaert.