Hi,
I would like to display the project’s place title inside the info, like “Paris” for exemple, using the page.place
value (eg: “paris”) to find the corresponding page and get its title()
.
I have all my places pages stored in a places
folder.
Here is the actual fields
section of my home.yml
blueprint code, all works find except the info
part:
fields:
featured:
label: Featured projects
type: pages
options: query
query: site.find('projects').children.listed
layout: cards
info: "{{ site.find('places').children.findBy('uid', page.place).title }}"
My content folder structure looks like this:
I guess that the problem comes from the findBy()
part, but I can’t find the solution.
What am I doing wrong?