Jump to content

Pull field data from different page?


patzer
 Share

Recommended Posts

Just so you know....you are not limited to getting the field by getting the other page by its ID...(though that's easiest and safest because it doesn't change...)....you can get it by path, name, title....

Link to comment
Share on other sites

I almost never pull pages by ID. The whole readability factor of $pages->get('/path/to/page/'); is well worth the compromise for me most of the time. But it's true that using ID is more bulletproof because it'll keep working even if you later move the page. But I usually choose readability (and I don't move stuff around very often). 

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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