I use Merx plugin. My orders only stores user->uuid() as user infos, as users have to be logged in to place an order.
I want to put an ‘orders’ section in user blueprint, listing only user orders.
My user yml:
sections:
orders:
type: pages
label: Commandes
parent: site.find('commandes')
template: order
query: site.find('commandes').children.filterBy('user_uuid', user.uuid, '=')
sortBy: num desc
It works (with user.uuid and not user.uuid.id).
But is it possible as an admin to filter user orders when I click on user page ?
It looks like I can’t send the user page uuid to the query. It takes my admin’s uuid.