About findParent
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
Information
New in findParent 0.4.2
Initial content