I would like to define a TV for a parent, so that all childen will inherit this tv (current and future children), but I don’t want the parent itself to use this TV.
How can I accomplish that?
Stalker
Yes, and how to define an @INHERIT binding without affecting the parent itself?
-
MODX Staff
- 12,272 Posts
Set the TV’s default value to be @INHERIT. For the parent, you must define the the value. You may need to create multiple templates, both with the TV assigned to it, but not having it actually in the parent template.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me