Interface IUrlSegmentProvider
Provides URL segments for content.
Namespace: Umbraco.Cms.Core.Strings
Assembly: Umbraco.Core.dll
Syntax
public interface IUrlSegmentProvider
Remarks
Url segments should comply with IETF RFCs regarding content, encoding, etc.
Methods
View SourceGetUrlSegment(IContentBase, Boolean, String)
Declaration
virtual string GetUrlSegment(IContentBase content, bool published, string culture = null)
Parameters
Type | Name | Description |
---|---|---|
IContentBase | content | |
System.Boolean | published | |
System.String | culture |
Returns
Type | Description |
---|---|
System.String |
GetUrlSegment(IContentBase, String)
Gets the URL segment for a specified content and culture.
Declaration
string GetUrlSegment(IContentBase content, string culture = null)
Parameters
Type | Name | Description |
---|---|---|
IContentBase | content | The content. |
System.String | culture | The culture. |
Returns
Type | Description |
---|---|
System.String | The URL segment. |
Remarks
This is for when Umbraco is capable of managing more than one URL per content, in 1-to-1 multilingual configurations. Then there would be one URL per culture.