Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Regardless of what formatter you set for the field, CCK's panels integration will always pass the full formatter string from panels, which is both field name and formatter in a string. e.g. field_name:full. Because this isn't a valid formatter for any field, the formatter ends up being "default."
This patch passes the value for $formatter that is derived earlier in the function call.
Comment | File | Size | Author |
---|---|---|---|
#2 | cck-DRUPAL-5.formatter.patch | 737 bytes | sun |
cck-panels-formatter.patch | 738 bytes | Anonymous (not verified) |
Comments
Comment #1
ezra-g CreditAttribution: ezra-g commentedI diagnosed this problem unaware that this issue existed in the queue. I can confirm that the change made by this patch does in fact solve this issue. I'll let the maintainers mark RTBC.
Comment #2
sunSame issue here, and 1:1 the same patch.
Comment #3
sunComment #4
gracearoha CreditAttribution: gracearoha commentedHi,
I was having the same problem with CCK 1.7. I tried the patch and all works fine with default, bold and italic settings. But when i try to use "trimmed", i get no text at all. I have tried trimming at 200 and 400 characters with no luck. Any ideas where i might look would be much appreciated.
Comment #5
JohnAlbink. Looks like I'm the 4th person to independently build the exact same patch. :-p
This patch is so RTBC, it's crazy.
Comment #6
JohnAlbinBTW, if you are trying to use panels context and pull an image field into a pane, this bug causes it to not be rendered at all. Because the default formatter doesn't work on image/file fields. So its a critical patch for those types of fields.
Comment #7
yched CreditAttribution: yched commentedCommitted. Thx all.
Comment #8
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.