diogo Posted September 22, 2015 Posted September 22, 2015 Would be really nice to be able to do this when outputting a field: $page->get("field|parent.field") I was already looking in the coreto see how it could be done, but got lost In theory it shouldn't be too hard, since it works already with pages selectors... or?
LostKobrakai Posted September 22, 2015 Posted September 22, 2015 https://github.com/ryancramerdesign/ProcessWire/issues/1129#issuecomment-97858464
diogo Posted September 22, 2015 Author Posted September 22, 2015 Oh, thanks LostKobrakai! Meanwhile I used a pretty decent solution to do the same (even better because it goes further in the tree). Here it is for those interested: $page->closest("info!=")->info
LostKobrakai Posted September 23, 2015 Posted September 23, 2015 Just noticed: It seems like the tag $page->get("{parent.title}"); does get parsed in the dev version. 1
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