I create a new CCK Date field type 'Schedule' and attach it to 2 'Event' content types.
When trying to copy the event dates to the Schedule field of the same content type, the target data type only allows (arbitrarily) one of the content types as a target.
This is because the content type selection code loops though field types, not content types when building the content option select form.
See patch for a working solution.
Note: timezones seems to be fubared afaik. The last hunk of the patch lets me copy w/o mangling the timezones. Probably shouldn't be included though.
This might be duplicate of http://drupal.org/node/302113, but they don't mention any of the preconditions fixed by this patch, so I'm not sure.
Comment | File | Size | Author |
---|---|---|---|
#4 | import_shared_date_cck_field.patch | 2.91 KB | ambereyes |
importing_a_shared_date_cck_field.patch | 2.56 KB | delineate | |
Comments
Comment #1
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedwhich file is this against?
Comment #2
arlinsandbulte CreditAttribution: arlinsandbulte commentedThe referenced issue has been closed.
Is this still valid?
Comment #3
arlinsandbulte CreditAttribution: arlinsandbulte commentedNo followup after more than 2 months at "postponed (maintainer needs more info)".
Marking as closed.
Comment #4
ambereyes CreditAttribution: ambereyes commentedThis was never corrected. When you create date fields for more than one content type, the content_fields() function call in date_tools_copy_type_form and date_tools_copy_type_fields_form will only load one of the content types. This stops you from converting more than one event content type because the new ones with date fields will not show up as target types.
I rerolled the original patch for a more current version.
It is against the date_tools.event.inc in the date_tools folder.
Comment #5
jc1 CreditAttribution: jc1 commentedThanks for patch and info. Based on this, i deleted a new created content type. With one content type with date field only, i was finally able to convert event time to date field inside one node. So URL is the same, comments are here and it's possible to disable event module. Thanks alot.
Comment #6
DamienMcKennaUnfortunately the D6 version of this module is no longer supported, but we appreciate the time you put into this. If this problem is relevant for D7 too, please reopen the issue. Thanks.