Enhancement
Detail
#27320
Layout XML: Use of template parameters for inner template calls
When instantiating layout templates it is possible to fill a tl:LayoutComponent property by instantiating a layout template again. Here it should be possible to use arguments of the outer template call when calling the inner template.
Example
There is a template "outer.template.xml" with a parameter "dialogs" that expects a list of LayoutComponent's. Further there is a template "inner.template.xml" which expects a parameter "typeOptions".
The following template expects a parameter "modelType" and wants to "call" "inner.template.xml" and use the parameter "modelType" in the arguments for "inner.template.xml".
<config:template xmlns:config="http://www.top-logic.com/ns/config/6.0" assistant-for="outer.template.xml" > <properties> <property name="modelType" type="String" /> </properties> <config> <dialogs> <config:template-call template="inner.template.xml"> <arguments> <typeOptions type="${modelType}"/> </arguments> <config> </dialogs> </config> </config:template>
Test
Used in the test for #27332.