Determining visibility of a block

Vote:
 

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

#85803
May 06, 2014 9:36
Vote:
 

Asked in another way:

 

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

#85805
May 06, 2014 9:47
Vote:
 

Does this work for you?

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

    

 

#85811
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.