Project:Fullname field for CCK
Version:5.x-1.4
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (won't fix)

Issue Summary

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

#1

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

See for an example.

#3

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

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

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

b

#6

Status:fixed» closed (fixed)

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

#7

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.

#8

Category:support request» feature request

good idea

#9

Status:active» closed (won't fix)

No longer supporting D5 version.

nobody click here