My page blueprint:
orderStatus:
label: Order Status
type: select
translate: false
required: true
default: pending
options:
pending: Pending
pending_payment: Pending Payment
...
My section bluprint:
type: pages
headline: Last Orders
parent: site.orders
sortBy: createdAt desc
info: "{{ page.orderStatus }}"
image: false
I want show order status on section info.
But showing selected value instead of selected text.
Current: output: pending_payment
Expected output: Pending Payment
Tried followings:
- page.orderStatus.text
- page.orderStatus.value
- page.orderStatus.toText()
Is there a way to solve this?
Thanks