26 June, 2012

Read repeatable data


Hi Everyone,

If you guys are thinking to read repeatable  data from structure and want to fatch in template, Just see and use below code :
In Structure :
<root>
  <dynamic-element index-type="text" name="name" repeatable="true" type="text">
    <dynamic-element index-type="" name="link" repeatable="false" type="text"></dynamic-element>
  </dynamic-element>
</root>

In Template :
<div class="community-names" style="background: none repeat scroll 0 0 #73B3DE; float: left; padding: 5px 0 5px 205px; width: 100%;">
#foreach ($communityname IN $name.getSiblings())
<a href="http://www.blogger.com/$communityname.link.getData%28%29">
    $communityname.getData()  
</a>   
 #end

</div>
</div>

Rate Me:

0 Discussion:

Post a Comment

Your Comments on this post

Google Pay Referral Code s34xJ – Earn 180 INR Per Referral

You can use  Google Pay Referral Code s34xJ  and sign up on  Google pay  . Google has increased its referral commission from 51 to 180 INR. ...