Colorpicker in Views

manop - April 18, 2009 - 14:21
Project:Colorpicker
Version:6.x-2.0-rc1
Component:Miscellaneous
Category:feature request
Priority:normal
Assigned:Unassigned
Status:postponed
Description

Thanks for this useful module. I would like to see Colorpicker feature in Views as well. That would open several opportunities.

#1

manop - April 19, 2009 - 14:54

To clarify my post above is to select the ranges of colors such as white, black, yellow, red instead of HTML hex color data itself.

#2

skilip - April 22, 2009 - 05:10
Status:active» postponed

That would be awesome indeed, however I haven't the foggiest on how to do tha yet. Changing status to prosponed.

#3

slurslee - July 23, 2009 - 04:11

One of the things this module should certainly have is formatters, beginning with a simple colored square which can be displayed as the field's #view. Formatters are also used for widgets, if I understand the CCK API correctly. So it is possible to have other widgets besides a Farbtastic color picker.

With the addition of formatters for different input widgets (HSB, RGB, CMYK, etc.) and different output displays (color bar, square, circle, hex color, etc.) "color" becomes a formal CCK data type. (The name might be changed to "Colorfield" at some point to fit in with the proliferating sea of CCK data types.)

As for its behavior with views, presumably if you expose a Colorpicker CCK field as a view argument now, you'll get a color picker field at the top of the view, and yes, it's terrible. So what you really want is a place where you input a list of colors and that list becomes a set of colors you can choose from, either on a node form or on a search page. This is slightly trickier than your average CCK widget, but it can be done.

Any takers?? :-P

 
 

Drupal is a registered trademark of Dries Buytaert.