pwired Posted January 7, 2016 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
Raymond Geerts Posted January 7, 2016 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
adrianmak Posted January 7, 2016 Author 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
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