…and was hoping to use the query function to pull from a pre-defined set of colors, so that if I need to change out color options I can do this once instead of across several blueprints in the site.
Right now I have this entry in the site.yml blueprint:
What exactly do you want to get here? All the options or the ones selected by the user? I guess the selected values are stored as comma separated list? Or in yaml format in site.txt?
Sorry - The colors aren’t user-editable, they’re just listed in the site.txt blueprint & I’d like to make those same colors available in other blueprints without repeating them each time, if that makes sense. Thank you again!
In that case you actually have to go via the $page->blueprint() method to fetch those options. I’d create a custom page method that returns an array of options from that field, see this recipe for more details.