MadeMyDay Posted August 20, 2014 Share Posted August 20, 2014 Struggling on a problem with the new PageTable field. If the field is set to a custom page holding the entries, I don't know how to define the original page where the PageTable field is included. Say I have a page with id 1040 and my entries are stored under a page with id 1020: If I render $page->parent->id, I always get 1020 (of course). How can I access the id where the PageTable field is originally included (here: 1040)? Link to comment Share on other sites More sharing options...
Soma Posted August 20, 2014 Share Posted August 20, 2014 There's no reference, it's a normal page. The only reference is the pagetable field itself. Ring a bell? $thepage = $pages->get("template=basic-page, mypagetable=$page"); 8 Link to comment Share on other sites More sharing options...
MadeMyDay Posted August 20, 2014 Author Share Posted August 20, 2014 Soma, thank you. As always: Easier than I even dreamed of. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now