Class ContentFinderByUrlAlias
Provides an implementation of IContentFinder that handles page aliases.
Inheritance
System.Object
Namespace: Umbraco.Web.Routing
Assembly: Umbraco.Web.dll
Syntax
public class ContentFinderByUrlAlias : IContentFinder
Remarks
Handles /just/about/anything
where /just/about/anything
is contained in the umbracoUrlAlias
property of a document.
The alias is the full path to the document. There can be more than one alias, separated by commas.
Constructors
View SourceContentFinderByUrlAlias(ILogger)
Declaration
public ContentFinderByUrlAlias(ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
ILogger | logger |
Properties
View SourceLogger
Declaration
protected ILogger Logger { get; }
Property Value
Type | Description |
---|---|
ILogger |
Methods
View SourceTryFindContent(PublishedRequest)
Tries to find and assign an Umbraco document to a PublishedRequest
.
Declaration
public bool TryFindContent(PublishedRequest frequest)
Parameters
Type | Name | Description |
---|---|---|
PublishedRequest | frequest | The |
Returns
Type | Description |
---|---|
System.Boolean | A value indicating whether an Umbraco document was found and assigned. |