craftpulse / craft-colour-swatches

Let clients choose from a predefined set of colours.
MIT License
34 stars 23 forks source link

Search by color swatches field #113

Open ptrykulich opened 7 months ago

ptrykulich commented 7 months ago

It would be useful to implement the ability to search by Color Swatches field. The idea is that in the Entry (or in any Element) there is a color swatcher field, and 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() %}

wmdhosting commented 2 months ago

Is there any ETA for this..

michtio commented 2 months ago

@wmdhosting no there isn't any ETA for this yet.