Page function in query string

Hi,

I saved UUIDs of linked pages in a structure and would like to display the titles of the linked pages in a pages section column. I got so far to display the UUID in a column but now I am wondering, what is the query language equivalent to

page('some-uuid')->title()

?

here is what i got so far:

sections:
      werke:
        label: Werke
        type: pages
        columns:
          lastmodified:
            label: Letzte Änderung
            value: "{{ page.modified }}"
          childPageTitles:
            label: Untergeordnet
            value: "{{ page.childEventsAndWorks.toStructure.first.foreignkey }}"

which displays the correct UUID in the panel…

I’d try

site.find('some-uuid').title

After all, that’s what the page helper seems to do

That would be:

    sections:
      werke:
        label: Werke
        type: pages
        columns:
          lastmodified:
            label: Letzte Änderung
            value: "{{ page.modified }}"
          childPageTitles:
            label: Untergeordnet
            value: "{{ site.find(page.childEventsAndWorks.toStructure.first.foreignkey).title }}"

Or you could always create a page model and put it there.

1 Like

That did the trick, thanks a lot!!!