Try our conversational search powered by Generative AI!

Determining visibility of a block


Having a contentArea are I wish to progrematically to determine which blocks are visible and which are not using the specifc content groups?

May 06, 2014 9:36

Asked in another way:


Model.MyContentArea.Items.Count gives me the number of total items. I need the number of visible items

May 06, 2014 9:47

Does this work for you?

var count = currentPage.MainContentArea.FilteredItems.Count();



May 06, 2014 10:39
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.