November Happy Hour will be moved to Thursday December 5th.

Class FilterTemplate

Filter pages that does not have a page template defined.

Inheritance
System.Object
FilterTemplate
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Filters
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
public class FilterTemplate : PageFilterBase, IPageFilter, IContentFilter

Constructors

FilterTemplate()

Declaration
public FilterTemplate()

Properties

Tag

Tag used for selecting template

Declaration
public string Tag { get; set; }
Property Value
Type Description
System.String

TemplateResolver

Gets or sets the template resolver.

Declaration
public Injected<ITemplateResolver> TemplateResolver { get; set; }
Property Value
Type Description
Injected<ITemplateResolver>

TemplateTypeCategories

Gets or sets the template type categories.

Declaration
public TemplateTypeCategories TemplateTypeCategories { get; set; }
Property Value
Type Description
TemplateTypeCategories

The template type categories.

Methods

Filter(PageDataCollection)

Filters the specified pages.

Declaration
public override void Filter(PageDataCollection pages)
Parameters
Type Name Description
PageDataCollection pages

The pages that should be filtered.

Overrides

Filter(Object, FilterEventArgs)

Event handler that applies the filter for a PageDataCollection.

Declaration
public override void Filter(object sender, FilterEventArgs e)
Parameters
Type Name Description
System.Object sender

The class/instance that initiated the Filter event.

FilterEventArgs e

The FilterEventArgs argument containing the event data.

Overrides

ShouldFilter(IContent)

If the content should be filtered.

Declaration
public override bool ShouldFilter(IContent content)
Parameters
Type Name Description
IContent content
Returns
Type Description
System.Boolean

True if the filter will remove the page; otherwise false.

Overrides

ShouldFilter(PageData)

If the page should be filtered.

Declaration
public override bool ShouldFilter(PageData page)
Parameters
Type Name Description
PageData page

The page that you want to check.

Returns
Type Description
System.Boolean

True if the filter will remove the page; otherwise false.

Overrides

Implements

Extension Methods