Hi,
I am having a play with the new pages “table” layout in 3.7, and very much enjoying it.
I am trying to display some fallback content, if the value query comes up empty. This is what I have so far:
replies:
type: pages
template: community-reply
layout: table
image: false
sortBy: postDate asc
columns:
postDate:
label: Posted
type: date
display: DD.MM.YYYY - HH:MM
author:
label: Author
value: "{{ page.author.toUser.school.toPage.title.or('Admin') }}"
If the author has a school associated with it, then that displays perfectly. However if they don’t the column is blank, and I would like it to read “Admin” (only admin users don’t have a school).
Is this possible?
Thanks!