-
- 24,544 Posts
Weblinks always use the template of the target. Symlinks use the template of the Symlink.
-
- 793 Posts
I see. So using symlinks instead of weblinks: How to ensure the children of (33) will inherit the template imposed by the symlink to resource (33)?
-
- 24,544 Posts
I believe the InheritParentTemplate would do it. The template is set when the resource is created.
---------------------------------------------------------------------------------------------------------------
PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
MODx info for everyone:
http://bobsguides.com/MODx.html
When you create the child it will be assigned the template of its parent. If you change the template of the parent, that won't change the template of its children. The template setting is done upon resource creation. TVs @INHERIT binding works differently since the resource's TV value is stored in a separate table while the template is indicated by a field in the site_resource table along with the other resource values.
Changing templates on-the-fly doesn't work if the page in question is cached, as the page's template is never checked if it's set to be cached and its cache file does exist. Although I don't know anything at all about how weblinks and symlinks work in Revo, so there must be some mechanism for dealing with that.