Closed (won't fix)
Project:
Fullname field for CCK
Version:
5.x-1.4
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Dec 2007 at 04:15 UTC
Updated:
14 Sep 2010 at 22:01 UTC
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
Comment #1
rconstantine commentedSee 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
Comment #2
macco commentedSee for an example.
Comment #3
ben soo commentedOK! 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
Comment #4
rconstantine commentedThere'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.
Comment #5
ben soo commentedThanks again. Writing a theme template override function for this use is my project today.
b
Comment #6
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #7
scedwar commentedFor 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.
Comment #8
rconstantine commentedgood idea
Comment #9
rconstantine commentedNo longer supporting D5 version.