I would love for this module to work with the Field Collections Module when displaying multiple cases of the field. (Hope that makes sense.)

Anyways, what the module currently does is attach the color picker to the first case and when you click "Add another item" the new field is created however the color picker is added to the first case again.

To solve this issue for my case since I need it to work for Monday is modify "color_field.module" and add lines 308-312 to change the $delta when displayed in a Field Collection.

Since this is the first time I have made a module change suggestion I have not looked into how to submit a patch.. Sorry.

Hope what I did can help add Field Collections support.

CommentFileSizeAuthor
#1 multiple-uses.patch1.5 KBqwertyisms
color_field.zip20.91 KBbuilderShawn
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

qwertyisms’s picture

Status: Active » Needs review
FileSize
1.5 KB

Attached patch against 7.x.1.x, which detects if color picker widget is being used within a field collection, and if so adds bundle information to div id. Also corrects an attempted 'diplay:none' [sic] (a CSS attribute not recognized by most modern browsers) on elements of class "hide-input" to instead use the "element-invisible" class already integrated into drupal.

This patch graciously sponsored by http://www.scanther.com .

targoo’s picture

Status: Needs review » Needs work

Hi

Fixed for the default widget and Simple Color Widget. Need a bit of comment and polishing but already working with the dev release.

checkout online examples:

http://live.targoo.gotpantheon.com/color_field/field_collection1
http://live.targoo.gotpantheon.com/color_field/field_collection2

Will be release soon in 7.x-1.4.

Thanks,

targoo’s picture

Status: Needs work » Closed (fixed)

fixed in 7.x-1.4

builderShawn’s picture

Thanks works great!