Posted on 08/12/2014 12:06:22
You can already do this using Razor templates.
Use this to check if the list of items is not empty:
@if (GetLoop("Item.ListOfSomething").Any())
{
<ol class="items">
@foreach (var item in GetLoop("Item.ListOfSomething"))
{
<li>@item</li>
}
</ol>
}
Use this to get the actual number of items:
<pre>#items: @GetLoop("Item.ListOfSomething").Count</pre>
Best regards,
Mikkel