-
- 1 Posts
Hi all! I’m hoping someone can help me with this? I’m relatively new to ModX and have searched high ’n’ low but with no luck, I’m more of a HTML/CSS person so please don’t flame my post!
First of all am I using the right snippet to do this?
I’ve tried GetField with my install and I’m getting nothing. Not even an output with the most simple call. So I tried PHx and installed the phx:parent custom modifier. Using [*id:parent*] I get the parents page title which is perfect - but I also want the parent’s, parent’s (grandparents?) title.
Any clues?
-
- 1,624 Posts
I recommend you try again GetField.
Maybe this will work
[[GetField? &field=`pagetitle` &parent=`1` &parentLevel=`2`]]
Play with the parentLevel value.
-
- 659 Posts
Maybe the UltimateParent snippet can do the job... have a look at it, it returns the ultimate parent ID of a resource, when you have ID you can easily get the pagetitle...
Hope this helps
cheers
-
- 1,624 Posts
You can also try ParentParent. Similar to UltimateParent.