adrianmak Posted January 7, 2016 Share Posted January 7, 2016 $page->parent $page->rootParent Link to comment Share on other sites More sharing options...
pwired Posted January 7, 2016 Share Posted January 7, 2016 $page->rootParentThe parent page closest to the homepage (typically used for identifying a section)https://processwire.com/talk/topic/2911-why-does-page-rootparent-identify-current-section/https://processwire.com/talk/topic/8326-getting-the-rootparent/ 7 Link to comment Share on other sites More sharing options...
Raymond Geerts Posted January 7, 2016 Share Posted January 7, 2016 HomeProductsProduct1Review-Product1 Product2Review-Product2 Product3Review-Product3 Contact --- The parent from "Review-Product1" is "Product1" The rootParent from "Review-Product1" is "Products" 8 Link to comment Share on other sites More sharing options...
adrianmak Posted January 7, 2016 Author Share Posted January 7, 2016 HomeProductsProduct1Review-Product1 Product2Review-Product2 Product3Review-Product3 Contact --- The parent from "Review-Product1" is "Product1" The rootParent from "Review-Product1" is "Products" understood with this example 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