Closed (fixed)
Project:
CCK Blocks
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Reporter:
Created:
8 May 2009 at 09:06 UTC
Updated:
8 Dec 2009 at 20:30 UTC
Jump to comment: Most recent
I am trying to use cck blocks and panels to show cck fields. All other cck blocks show up properly, but the Date cck field block never shows up at all (not even a block title).
The Date field still shows up properly on the content itself.
The Date field format is set to a date format, with both from and to values shown.
Comments
Comment #1
Anonymous (not verified) commentedOkay, I identified the problem: we call
module_invoke('content', 'format', $fields[$delta], $item, $settings['formatter'], $node);to get the formatted value of a field. Unfortunately, the content module doesn't know anything about how to format or theme a date flield.Which is the right formatting function to call for a field? We have to use something like:
module_invoke($fields[$delta]['field_type'], 'format', $fields[$delta], $item, $settings['formatter'], $node);We have to collect more information about that. I changed the priority to 'critical', as this may affect other field types, not included in basic cck_module.
Comment #2
Anonymous (not verified) commentedokay, I'm took a closer look at the problem. It seems to be a formatter problem of the date module.
Could you please check, if you get de block visible by changing the formatter option to "as time ago"?
Regards,
forschi
Comment #3
RoboPhred commentedYep, it works fine as "time ago", although I need the exact date in this case.
Comment #4
Anonymous (not verified) commentedThanks. I think, it is not useful only to support "as time ago". But as this works, and other formatters don't, it seems to be a bug in the date module. We only print the formatted value in the block, that we get from the module. I opened a bug in the date module.
Comment #5
Anonymous (not verified) commentedPlease check the latest -dev release.
Comment #6
Anonymous (not verified) commentedSeems to be fixed, as there are no further comments.