Hi all,
I'm on MODx Revo 2.2 and I'm sure I've done this before, but I can't for the life of me figure out how to do it again!
I have a resource tree as follows:
Top Level
-- Sub Level
---- Sub-Sub Level
On the 'sub-sub level' page, I just need to pull in the title of the 'sub level' page. No links, nothing fancy, just the same of the page for text purposes.
Does anyone know how I can achieve this? All the modules I keep finding seem to just pull in the ID of the resource and not the page title.
Kind regards,
Lewis
-
☆ A M B ☆
- 24,524 Posts
Use the getResourceField snippet:
[[getResourceField? &id=`[[*parent]]`]]
By default it returns the pagetitle; use the &field property to get a different field value.
Would this be an option?
[[getResourceField? &id=`[[*parent]]` &field=`pagetitle`]]
Ah, Susan was already giving the correct answer
Codeplaza Webdesign: for professional websites at low cost
Works like a charm!
Thank you!!!