Index: openacs-4/packages/acs-templating/tcl/tag-init.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/tcl/tag-init.tcl,v diff -u -N -r1.39.2.7 -r1.39.2.8 --- openacs-4/packages/acs-templating/tcl/tag-init.tcl 10 Sep 2015 08:22:07 -0000 1.39.2.7 +++ openacs-4/packages/acs-templating/tcl/tag-init.tcl 18 Sep 2015 10:23:46 -0000 1.39.2.8 @@ -147,14 +147,20 @@ } template_tag include { params } { + # + # Check, if the src can be resolved against resources/templates in + # the theme package + # + ns_set update $params src [template::themed_template [ns_set iget $params src]] template:template_tag_helper $params } # -# is very similar to , but uses name resolution -# based on themes. If the theme package contains +# is very similar to , but uses widget specific name +# resolution based on themes. If the theme package contains # resources/widgets/$specifiedName it is used from there. Otherwise it -# behaves exactly like +# behaves exactly like (without the resources/templates/ +# theming) # template_tag widget { params } { set src [ns_set iget $params src] @@ -650,7 +656,11 @@ template_tag include-optional { chunk params } { - set src [ns_set iget $params src] + # + # Check, if the src can be resolved against resources/templates in + # the theme package + # + set src [template::themed_template [ns_set iget $params src]] set ds [ns_set iget $params ds 1] #Start developer support frame around subordinate template.