Extras catalogue
findParent
Latest release 14 years ago (January 24, 2012).
About
A simple plugin that traverses up a given resource's parent tree searching for a resource with the provided value of a given property or Template Variable. Returns the requested property or Template Variable.
Examples:
Search for an ancestor resource of the current document with a pagetitle of Women's Jackets and return it's id
[[findParent? &id=`[[*id]]` &haystack=`pagetitle` &needle=`Women's Jackets` &return=`id` ]]
Search for an ancestor resource of resource 23 with a forSale Template Variable of true and return it's pagetitle
[[findParent? &id=`23` &haystack=`tv.forSale` &needle=`true` &return=`pagetitle` ]]
Thanks for using findParent!
JP DeVries
mail@devries.jp
Installation & usage
Simply install via Packet Manager
At a glance
MODX 3 compatibility unknown. Based on our testing and community reports where available.
- Developer dinocorn
- Latest release January 24, 2012 (14 years ago)
- First seen in SiteDash January 24, 2012 (14 years ago)
- License GPLv2
- MODX support 2.1 – 2.3
- Databases MySQL
| Changelog | |||
|---|---|---|---|
| MODX.com |
0.4.2-pl |
January 24, 2012
14 years ago |
|
|
<p>Initial content</p>
|
|||
|
No matching releases. |
|||