I have a site which is three levels deep. I originally set the site up such that each document type contained an area for 'feature box content' - three simple text input boxes. In the master template there's some code which picks out the three bits of content and displays them on every page.
However, it's now become apparent that the end nodes need to inherit the feature box content from their parent modes, rather than having to input distinct content (or copy/paste content from their parent node) for every single node . All of the end nodes have a distinct document type and template, so I'm hoping this should be possible.
Populate child node with parent node content
Hi,
I have a site which is three levels deep. I originally set the site up such that each document type contained an area for 'feature box content' - three simple text input boxes. In the master template there's some code which picks out the three bits of content and displays them on every page.
However, it's now become apparent that the end nodes need to inherit the feature box content from their parent modes, rather than having to input distinct content (or copy/paste content from their parent node) for every single node . All of the end nodes have a distinct document type and template, so I'm hoping this should be possible.
Can anyone suggest how to do this?
Thanks!
There is "use recursion" checkbox, when you adding item into template. It should work for you.
Perfect, absolutely spot on, and so simple - thanks Petr!
is working on a reply...