Hello,
this is the structure of my website :
Works
first post
second post
third post
Blog
first post
second post
...
The documents "Works" and "blog" have [[*introtext]] : "Works is about blabla..", "This blog is about..."
In the template of the posts I would like to place in the header the [[*introtext]] of the post’s parent.
But I haven’t found the method in the documentation...
any help would be appreciated
-
☆ A M B ☆
- 3,141 Posts
Easy to accomplish using the getResourceField snippet. Fetch it through package manager and use it with the parameters displayed here:
http://modxcms.com/forums/index.php?topic=52181.0
While writing this reply I noticed this wasn’t mentioned in the RTFM, so I’ll quickly put up a draft on there too, so others may find it easier.
Another way i can think of (in case you don’t comfortable with running a snippet especially for this)
you can use a TV (name it sumytxt or something) and fill it with the default setting of @INHERIT, assign it to your template, and than simply use it as [[*sumytxt]].
i prefer getResources but i’m just sharing another option for you (if you use the same template and want to avoid a snippet call)
Michael Shraibman( gOmp) | Freelance Design & Development |
impossible is nothing...