Hi
Maybe I haven’t found the right documentation or was able to search for the correct forum entry, but here is my question:
I have the following key-value store:
# categories.yml
fields:
categories:
type: structure
fields:
name:
type: text
uuid:
type: structure-uuid
label: UUID
(structure-uuid
is a custom field generating uuids, but it should really matter I think)
I have an article
blueprint, which has a category
field which contains categories-ae126b32-633c-4db5-88fd-57b6e0956161
as its value
Using the layout: table
I would like to do something like this:
# articles.yml
sections:
articles:
layout: table
type: pages
template: article
columns:
category: true
query: site.find("categories").categories.toStructure.filterBy("uuid", page.category)
value: "{{ item.name }}"
As of right now, the table just shows the value (eg categories-ae126b32-633c-4db5-88fd-57b6e0956161
), but I would like to show the name
field
Can this be done? Or is my query wrong?
The above query results in nothing (so empty string)
Thanks for any help or insight!