How do i get the Toggle text in Frontend and on other Blueprints?
I tried the following:
user blueprint “kunde”
schaltung:
label: Schaltung
type: toggle
text:
- Automat
- Hand
page blueprint:
automobile:
label: Auto
type: select
options: query
query:
fetch: users.filterBy("role", "kunde")
text: "{{ user.firstname }} {{ user.lastname }} ({{ user.schaltung.text }})"
Shows only “true” or “false”!
template:
<?=$k->firstname().' '.$k->lastname().' ('.$k->schaltung()->text().')' ?>
Shows also only “true” or “false”!
Whats wrong?