Type ContentExtensions
Namespace Geta.EPi.Extensions
Public static methods
IEnumerable<T> FilterForDisplay<T>(this IEnumerable<T> content, bool requirePageTemplate, bool requireVisibleInMenu)
Filters content which should not be visible to the user.
Parameters
-
IEnumerable<T>
content - Enumeration of content instances to filter.
-
bool
requirePageTemplate - Mark if should include only content with template.
-
bool
requireVisibleInMenu - Mark if should include only pages with mark VisibleInMenu = true.
Returns
-
IEnumerable<T>
- Returns enumeration of filtered content.