title: Add a limitation in repeatable dynamic-element in Liferay structure
body: <p>I create a structure and template in Liferay 6.2 and I want to add a limitation in number of repetition.</p>
  
  <p>The attribute "repeatable" can have only "true" or "false" value.</p>
  
  <p>The structure :</p>
  
  <pre><code>&lt;root&gt;
    &lt;dynamic-element index-type="text" name="names" repeatable="true" type="text"&gt;
      &lt;dynamic-element index-type="" name="" repeatable="false" type="text"&gt; &lt;/dynamic-element&gt;
    &lt;/dynamic-element&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p>The Template</p>
  
  <pre><code>#foreach ($communityname IN $names.getSiblings())
         $communityname.getData()  
  
   #end
  
  &lt;/div&gt;
  </code></pre>