Hi there,
I’m trying to create a list of radio-buttons with my custom roles in a blueprint and I’m stuck with querying the roles.
When in a page-template I do
var_dump($kirby->roles();
then I get an array with the existing roles.
But trying using the same object this way, doesn’t get me nowhere:
type: group
fields:
access:
label: Zugriffsrechte
type: radio
options: query
query:
fetch: kirby.roles
text: " {{ role.title }}"
value: "{{ role.title }}"
Tried it with query: kirby.roles
with and without the fetch- and the text/value-param, doesn’t make no difference.
What is the correct syntax?
And is there a way to omit the admin-role?
Thank you in advance and happy Easter!
Ralf