Closed cmalven closed 5 years ago
@cmalven you can get this info in a couple of ways.
1) Through any custom field:
{{ entry.yourColourFieldHandle.field.paletteColors }}
2) By getting a craft field populated with the preset settings:
{% set field = craft.colorit.presets.getPresetbyId(4).getFieldType() %}
{{ field.paletteColors }}
You can grab a preset ID from the CP, will add a handle at some point.
Thank you @samhibberd that's perfect.
I'd like to be able to fetch all of the colors in a given preset as an array, something like the following:
Any existing way to do something like this?