Fetch / query content from another page

Okay… this must be the most basic question ever, but I’ve never dealt with it before…

Imagine this is my content-folder / site-setup;


How do I get a field-value (e.g. “intro” which contains a introduction-text) from home.txt on the about-page?

I tried several syntaxes, none of them did work…

echo $page->find('home')->intro()->kt();
echo $page('home')->intro()->kt;

It’s easy to parse the value from a field, directly linked to that page - but how do you fetch / query values from other pages?

Your second example works without the $-sign:





1 Like

Wow, perfect!

I knew I had to query it with ‘find’, but forgot the difference between “$page” and “$pages” :smile:

Well, hopefully anyone else stumbling across this basic issue, will find the solution here!