Jump to content

Recommended Posts

Posted

This is a absolute beginners question I'am afraid. 

How do I call the value of a field from another template?

echo "$fields->get('template=home')->home_tekst_8";
Posted

For fields you can get stuff like names, id, labels and such but not content values. For that you need to get a page by id, path or selector. Something like this:

echo $pages->get('/')->home_tekst_8;

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...