Ok here is the basic scenario, the site has lets say 5 different sections ’top level navigation.’ Each section header has a different image and/or flash movie. Instead of creating a separate template per section, is there a way to setup one template with dynamic image calls based on the parent page ID? Is it possible to do this? Or, is creating separate templates the simpler way to go about it?
Thanks in advance!
-
MODX Staff
- 10,725 Posts
Lot’s of ways to approach it with MODx without creating multiple templates. The ones that come to mind immediately are:
[#] Using a TV with @INHERIT binding as default value, then setting the value for each top level parent
[#] Using a snippet in your template that renders a header based on the top level parent
-
☆ A M B ☆
- 24,524 Posts
I love that @INHERIT binding; there’s seldom a site I work on that doesn’t use it.