Sample Repeatable filed in structure and template in web content portlet.
<dynamic-element name='text' type='text' index-type='' repeatable='true'>
<dynamic-element name='image' type='image_gallery' index-type='' repeatable='false'></dynamic-element>
</dynamic-element>
</root>
Step 2: Create a Template click Lunch editor its open a popup window paste this code.
#foreach($txt in $text.getSiblings())
#foreach($img in $txt.getChildren())
<img src="$img.getData()" /> <span>$txt.getData()</span>
#end
#end
Step 3:Use this structure and template in web content portlet., You will find the add button if you click the button the filed will repeat one. you could delete this filed as click delete button to delete the filed.
Step 1: Create a structure click Lunch editor its open a popup window paste this code.
<root><dynamic-element name='text' type='text' index-type='' repeatable='true'>
<dynamic-element name='image' type='image_gallery' index-type='' repeatable='false'></dynamic-element>
</dynamic-element>
</root>
Step 2: Create a Template click Lunch editor its open a popup window paste this code.
#foreach($txt in $text.getSiblings())
#foreach($img in $txt.getChildren())
<img src="$img.getData()" /> <span>$txt.getData()</span>
#end
#end
Step 3:Use this structure and template in web content portlet., You will find the add button if you click the button the filed will repeat one. you could delete this filed as click delete button to delete the filed.