Search Results for

    Show / Hide Table of Contents
    View Source

    Class InstallDefaultDataSettings

    Typed configuration options for installation of default data.

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.Configuration.Models
    Assembly: Umbraco.Core.dll
    Syntax
    public class InstallDefaultDataSettings

    Properties

    View Source

    InstallData

    Gets or sets a value indicating whether to create default data on installation.

    Declaration
    public InstallDefaultDataOption InstallData { get; set; }
    Property Value
    Type Description
    InstallDefaultDataOption
    View Source

    Values

    Gets or sets a value indicating which default data (languages, data types, etc.) should be created when InstallData is set to Values or ExceptValues.

    Declaration
    public IList<string> Values { get; set; }
    Property Value
    Type Description
    IList<System.String>
    Remarks

    For languages, the values provided should be the ISO codes for the languages to be included or excluded, e.g. "en-US". If removing the single default language, ensure that a different one is created via some other means (such as a restore from Umbraco Deploy schema data).

    For data types, the values provided should be the Guid values used by Umbraco for the data type, listed at: Constants.DataTypes Some data types - such as the string label - cannot be excluded from install as they are required for core Umbraco functionality. Otherwise take care not to remove data types required for default Umbraco media and member types, unless you also choose to exclude them.

    For media types, the values provided should be the Guid values used by Umbraco for the media type, listed at: https://github.com/umbraco/Umbraco-CMS/blob/v9/dev/src/Umbraco.Infrastructure/Migrations/Install/DatabaseDataCreator.cs.

    For member types, the values provided should be the Guid values used by Umbraco for the member type, listed at: https://github.com/umbraco/Umbraco-CMS/blob/v9/dev/src/Umbraco.Infrastructure/Migrations/Install/DatabaseDataCreator.cs.

    • Improve this Doc
    • View Source
    In This Article
    • Properties
      • InstallData
      • Values
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX