Geta.EPi.Extensions : API Documentation

Type ContentExtensions

Namespace Geta.EPi.Extensions

Content extensions.

Methods

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.