<tmpl_if name="DOCUMENT" value="2">
<tmpl_if name="items_loop">
<tmpl_loop name="items_loop"> // this doesn`t work
<tmpl_include name="d_service_print_wp_head.html">
//ONLY this file needs loop but all section can`t work properly if only yhis file is looped
<tmpl_if name="item_rev_type" value="C">
<tmpl_include name="d_service_print_wpc.html">
</tmpl_if>
<tmpl_if name="item_rev_type" value="L">
<tmpl_include name="d_service_print_wpl.html">
</tmpl_if>
<tmpl_if name="item_rev_type" value="N">
<tmpl_include name="d_service_print_wpn.html">
</tmpl_if>
<tmpl_if name="item_rev_type" value="T">
<tmpl_include name="d_service_print_wpt.html">
</tmpl_if>
<p style="page-break-after:always"></p>
</tmpl_loop>
</tmpl_if>
</tmpl_if>
if all code form all files were in one file, anything would work. was working till I`ve put all code in seperate files. is there any feature, that allows something like this code ?
maybe nested loops would fix the problem ? if I put one loop in this file and another loop in place, that it has to be in.?