Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Few questions #44

Open
wmdhosting opened this issue Jun 5, 2024 · 2 comments
Open

Few questions #44

wmdhosting opened this issue Jun 5, 2024 · 2 comments

Comments

@wmdhosting
Copy link

  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
Copy link
Contributor

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
Copy link
Author

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() %}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants