Hi, I hope you can help a nubby in bot Umbraco and C#.
I need to know how to create a counter for each iteration of a rendered BlockList Item. Once I know which iteration version of the BlockList item I am working with I can then use an if statement to action something on a specific iteration.
Creating a BlockList Counter Loop
Hi, I hope you can help a nubby in bot Umbraco and C#.
I need to know how to create a counter for each iteration of a rendered BlockList Item. Once I know which iteration version of the BlockList item I am working with I can then use an if statement to action something on a specific iteration.
Any help would be really helpful.
This is the current code I have.
@using ContentModels = Umbraco.Cms.Web.Common.PublishedModels; @using Umbraco.Cms.Web.Common.PublishedModels; @using Umbraco.Cms.Core.Models @{ var content = (ContentModels.CarouselItems)Model.Content; //var contents = Model.Value<>
}
is working on a reply...