Interface ITemplateResolver
The template resolver is responsible to find what template to use for a certain type.
Namespace: EPiServer.Web
Assembly: EPiServer.Cms.AspNetCore.Templating.dll
Version: 12.0.3Syntax
public interface ITemplateResolver
Remarks
The template resolver can be extended using Template
Methods
ResolveAll(Object, Type, TemplateTypeCategories, IEnumerable<String>)
Resolves what rendering template that should be used for the provided item given that it is of the provided template category.
Declaration
IEnumerable<TemplateModel> ResolveAll(object item, Type itemType, TemplateTypeCategories category, IEnumerable<string> tags)
Parameters
Type | Name | Description |
---|---|---|
System. |
item | The item of which type the template should be associated with. |
System. |
itemType | in case item is null then type is used for resolving |
Template |
category | The category of template type that should be returned. |
System. |
tags | The tags to use when selecting a template. |
Returns
Type | Description |
---|---|
System. |
A Template |
Remarks
The template tags are treated as a prioritized list meaning a template with a tag matching a preceding tag will be preferred.