Class FilterTemplate
Filter pages that does not have a page template defined.
Inherited Members
Namespace: EPiServer.Filters
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7Syntax
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. |
TemplateResolver
Gets or sets the template resolver.
Declaration
public Injected<ITemplateResolver> TemplateResolver { get; set; }
Property Value
Type | Description |
---|---|
Injected<ITemplate |
TemplateTypeCategories
Gets or sets the template type categories.
Declaration
public TemplateTypeCategories TemplateTypeCategories { get; set; }
Property Value
Type | Description |
---|---|
Template |
The template type categories. |
Methods
Filter(PageDataCollection)
Filters the specified pages.
Declaration
public override void Filter(PageDataCollection pages)
Parameters
Type | Name | Description |
---|---|---|
Page |
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. |
sender | The class/instance that initiated the Filter event. |
Filter |
e | The Filter |
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. |
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 |
---|---|---|
Page |
page | The page that you want to check. |
Returns
Type | Description |
---|---|
System. |
True if the filter will remove the page; otherwise false. |