jan-h
2/10/2014 - 11:55 AM

Tridion DWT layout TBB goodness, from http://www.tridiondeveloper.com/tag/dreamweaver-templating

Tridion DWT layout TBB goodness, from http://www.tridiondeveloper.com/tag/dreamweaver-templating

<!-- TemplateBeginRepeat name="Component.Fields.repeatField" -->
 <!-- TemplateBeginIf cond = "TemplateRepeatIndex == 0 " -->
 <ul>
 <!-- TemplateEndIf -->
   <li>@@Field@@</li>
 <!-- TemplateBeginIf cond = "@@parseInt(TemplateRepeatIndex)@@ == @@parseInt(${CollectionLength("repeatField")})@@-1" -->
 </ul>
 <!-- TemplateEndIf -->
<!-- TemplateEndRepeat -->
<!-- TemplateBeginRepeat name="Component.Fields.repeatField" -->
 <!-- TemplateBeginIf cond = "TemplateRepeatIndex == 0 " -->
 <ul>
 <!-- TemplateEndIf -->
   <li>@@Field@@</li>
 <!-- TemplateBeginIf cond = "TemplateRepeatIndex) == @@CollectionLength("repeatField")@@-1" -->
 </ul>
 <!-- TemplateEndIf -->
<!-- TemplateEndRepeat -->