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

Comments

rconstantine’s picture

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

macco’s picture

See for an example.

ben soo’s picture

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

rconstantine’s picture

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.

ben soo’s picture

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

b

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

scedwar’s picture

Status: Closed (fixed) » 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.

rconstantine’s picture

Category: support » feature

good idea

rconstantine’s picture

Status: Active » Closed (won't fix)

No longer supporting D5 version.