London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
Hi,
I'm looking for a way to determine in code if a block should be included in a collection based on if it is in visitor group.
List blockList = new List();(c.ContentLink);
if (model.CurrentPage.BannerContentArea.Items.Any())
{
foreach (var c in model.CurrentPage.BannerContentArea.Items)
{
var item = contentLoader.Get
// filter based on visitor group
blockList.Add(item);
}
}
HomeBannerBlock[] blocks = blockList.ToArray();
I have multiple blocks in a content area. Looking for a way to filter out personalised blocks if not required.