OK. I see what do you say, but I have explained poorly (forget the teammates and their phone numbers). Lets try to do it better:
In short, the template I'm writing have six blocks with the same field structure so what I want to do is define the structure once and tell the template to repeat the structure six times. I think it is important because the structure may change in the future, but there allways be the same for the six blocks so I don't want to rewrite six blocks each time there is a new field.
This is the code I want to change:
Code: Select all
<div class="outerdiv">
<div id="f0" class="foto">
<img class="smallFoto" src="{content_image urlonly='1' block='f0_smallimage' dir='fdir' label='Small picture 0}"/>
<p>{content block='f0_title' label='Title 0' oneline='true'}</p>
<p>{content block='f0_subtitle' label='Subtitle 0' oneline='true'}</p>
</div>
<div id="f1" class="foto">
<img class="smallFoto" src="{content_image urlonly='1' block='f1_smallimage' dir='fdir' label='Small picture 1}"/>
<p>{content block='f1_title' label='Title 1' oneline='true'}</p>
<p>{content block='f1_subtitle' label='Subtitle 1' oneline='true'}</p>
</div>
<!--
...
-->
<div id="f6" class="foto">
<img class="smallFoto" src="{content_image urlonly='1' block='f6_smallimage' dir='fdir' label='Small picture 6}"/>
<p>{content block='f6_title' label='Title 6' oneline='true'}</p>
<p>{content block='f6_subtitle' label='Subtitle 6' oneline='true'}</p>
</div>
</div>