Search Results for

    Show / Hide Table of Contents
    View Source

    Interface ISimpleContentType

    Represents a simplified view of a content type.

    Namespace: Umbraco.Cms.Core.Models
    Assembly: Umbraco.Core.dll
    Syntax
    public interface ISimpleContentType

    Properties

    View Source

    Alias

    Gets the alias of the content type.

    Declaration
    string Alias { get; }
    Property Value
    Type Description
    System.String
    View Source

    AllowedAsRoot

    Gets a value indicating whether content of that type can be created at the root of the tree.

    Declaration
    bool AllowedAsRoot { get; }
    Property Value
    Type Description
    System.Boolean
    View Source

    DefaultTemplate

    Gets the default template of the content type.

    Declaration
    ITemplate DefaultTemplate { get; }
    Property Value
    Type Description
    ITemplate
    View Source

    Icon

    Gets the icon of the content type.

    Declaration
    string Icon { get; }
    Property Value
    Type Description
    System.String
    View Source

    Id

    Declaration
    int Id { get; }
    Property Value
    Type Description
    System.Int32
    View Source

    IsContainer

    Gets a value indicating whether the content type is a container.

    Declaration
    bool IsContainer { get; }
    Property Value
    Type Description
    System.Boolean
    View Source

    IsElement

    Gets a value indicating whether the content type is an element content type.

    Declaration
    bool IsElement { get; }
    Property Value
    Type Description
    System.Boolean
    View Source

    Key

    Declaration
    Guid Key { get; }
    Property Value
    Type Description
    Guid
    View Source

    Name

    Declaration
    string Name { get; }
    Property Value
    Type Description
    System.String
    View Source

    Variations

    Gets the content variation of the content type.

    Declaration
    ContentVariation Variations { get; }
    Property Value
    Type Description
    ContentVariation

    Methods

    View Source

    SupportsPropertyVariation(String, String, Boolean)

    Validates that a combination of culture and segment is valid for the content type properties.

    Declaration
    bool SupportsPropertyVariation(string culture, string segment, bool wildcards = false)
    Parameters
    Type Name Description
    System.String culture

    The culture.

    System.String segment

    The segment.

    System.Boolean wildcards

    A value indicating whether wildcard are supported.

    Returns
    Type Description
    System.Boolean

    True if the combination is valid; otherwise false.

    Remarks

    The combination must be valid for properties of the content type. For instance, if the content type varies by culture, then an invariant culture is valid, because some properties may be invariant. On the other hand, if the content type is invariant, then a variant culture is invalid, because no property could possibly vary by culture.

    • Improve this Doc
    • View Source
    In This Article
    • Properties
      • Alias
      • AllowedAsRoot
      • DefaultTemplate
      • Icon
      • Id
      • IsContainer
      • IsElement
      • Key
      • Name
      • Variations
    • Methods
      • SupportsPropertyVariation(String, String, Boolean)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX