It would be really nice to have one colorpicker that can be use with multiple fields. This is already done with the Garland theme color picker but I'm good enough with Javascript to do it myself.

Comments

dwees’s picture

Yes, I agree that this would be nice.

Unfortunately I'm not good enough with CCK to create an arbitrary number of elements that are tied together. :)

I'll leave this open in case anyone else has any suggestions.

Dave

dwees’s picture

I have this working, at least for the regular development, will work on cck. I have yet to commit my changes, want to fix cck first, but you will be able to define two different form elements with my base module. Colorpicker's and colorpicker_textfields and link them together.

I'll make sure to document my code so everything is clear. Not sure yet how this will look for cck. I suspect that I will have to just force the cck user to create both element types and provide helpful hints.

Dave

dwees’s picture

Check out http://www.unitorganizer.com/drupal5/colorpicker/example and let me know if you think it's what you are talking about.

Dave

dwees’s picture

Assigned: Unassigned » dwees
Status: Active » Fixed

This is changed in the most recent version that is uploaded and seems to work well. Also added validation. Unfortunately these changes will break the colorpicker_cck.module so I'll need to work on that.

Dave

Anonymous’s picture

Status: Fixed » Closed (fixed)

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