Field info passed to theme functions field only, not field/content type

hefox - July 4, 2009 - 23:07
Project:Content Construction Kit (CCK)
Version:6.x-2.x-dev
Component:Views Integration
Category:bug report
Priority:minor
Assigned:Unassigned
Status:closed
Description

Best I can tell at least in one field handler the information passed to the theme function is the field information general, not the specific one for the content type.

For example imagefield using the per content type field information for choicing what default image to display, resulting in all to result in whatever the main field default image is instead of content type based.

Here's my comment in the issue in imagefield issue about it (later comment with exact file name of handler). http://drupal.org/node/460996#comment-1740776

(Sorry about post twice so closely together :/).

Using latest 2.x stable of cck.

#1

yched - July 4, 2009 - 23:35
Status:active» needs review

Can you test the following patch ?

AttachmentSize
cck_views_fields-510396.patch 1.87 KB

#2

hefox - July 5, 2009 - 04:30

Works for me as far as content_handler_field goes, don't have any views which multi would effect so didn't test that.

Thanks =).

#3

drupalok - July 8, 2009 - 15:45

subscribing

#4

markus_petrux - July 8, 2009 - 15:53

@drupalok: if you can test the patch in #1, then please provide feedback. Thanks

#5

Illithium - July 22, 2009 - 19:56

Works for me with Views and multiple default images for the same imagefield. Thanks for the patch!

#6

markus_petrux - July 22, 2009 - 20:48
Status:needs review» fixed

Thanks for the feedback.

Committed a slight variation of the patch in #1 (it was doubling $options = $this->options; in field handler) to CCK2 and CCK3.

#7

System Message - August 5, 2009 - 20:50
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.