presseddigital / colorit

A slick color picker fieldtype plugin for the Craft CMS control panel
Other
21 stars 8 forks source link

Few questions #44

Open wmdhosting opened 5 months ago

wmdhosting commented 5 months ago
  1. Is it posiblle to have colors like this.. 2024-06-05_14-12-14

  2. Is it posiblle to search colors. so we use this field for products and faceted filtration..

ben-callaway commented 5 months ago

Thanks @wmdhosting - it's not currently possible to create a gradient output with a single Colorit field. We can look into this however.

How would you see the search working? When creating a field or choosing from many options (swatches) within an entry etc?

wmdhosting commented 5 months ago

Colors are not for gradient..that much but quite often Products can be labled like that

here is how others done it.. for that kind of output. 2024-06-05_15-30-08


As for search need to find all the entries related to a specific color: {% set entries = craft.entries.colorSwatchesFieldHandle('red').all() %} {% set entries = craft.entries.colorSwatchesFieldHandle('#fff').all() %}