Hey everybody,
I would like to add taxonomy entries to a select field in a page blueprint. Much like the example from the docs where they use a function call to list page routes, just with taxonomies. But I can't figure out the function to use (here's the relevant API section). I tried:
header.events_tag:
type: select
label: Schlagwort der zu zeigenden Termine
data-options@: '\Grav\Common\Taxonomy::getTaxonomyItemKeys("categories")'
options:
'--': '- zeige alle Termine -'
and also \Grav\Common\Taxonomy::findTaxonomy("categories"), but neither returns anything. I put something in the categories of course…
Does anybody know how it's done correctly? Your help is much appreciated!