Posted By

maetmar on 04/27/11


Tagged

counter cmsms


Versions (?)

CMSMS counter


 / Published in: Smarty
 

  1. <!-- Start News Display Template -->
  2.  
  3. {counter name=counter_a start=0 print=false}
  4. {counter name=counter_b start=0 print=false}
  5.  
  6. {foreach from=$items item=entry}
  7. <div class="news_block news_block_{counter name=counter_a}">
  8. <h4>{$entry->title|cms_escape}</h4>
  9. {if $entry->summary}
  10. {eval var=$entry->summary}
  11. <div class="news_block_slider news_block_{counter name=counter_b}_slider">
  12. {if $entry->content}
  13. <div class="NewsSummaryContent">
  14. {eval var=$entry->content}
  15. </div>
  16. {/if}
  17. </div>
  18. {/if}
  19. </div>
  20. {/foreach}
  21. <!-- End News Display Template -->

Report this snippet  

You need to login to post a comment.