Search Results for

    Show / Hide Table of Contents
    View Source

    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 Source

    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.

    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • GetUrlSegment(IContentBase, String)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX