Search Results for

    Show / Hide Table of Contents
    View Source

    Class ContentSettings

    Typed configuration options for content settings.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Configuration.Models
    Assembly: Umbraco.Core.dll
    Syntax
    [UmbracoOptions("Umbraco:CMS:Content")]
    public class ContentSettings

    Properties

    View Source

    AllowEditInvariantFromNonDefault

    Gets or sets a value indicating whether to allow editing invariant properties from a non-default language variation.

    Declaration
    public bool AllowEditInvariantFromNonDefault { get; set; }
    Property Value
    Type Description
    bool
    View Source

    AllowedMediaHosts

    Gets or sets the allowed external host for media. If empty only relative paths are allowed.

    Declaration
    public ISet<string> AllowedMediaHosts { get; set; }
    Property Value
    Type Description
    ISet<string>
    View Source

    AllowedUploadedFileExtensions

    Gets or sets a value for the collection of file extensions that are allowed for upload.

    Declaration
    public ISet<string> AllowedUploadedFileExtensions { get; set; }
    Property Value
    Type Description
    ISet<string>
    View Source

    BackOfficeLogo

    Gets or sets a value for the path to the backoffice logo.

    Declaration
    public string BackOfficeLogo { get; set; }
    Property Value
    Type Description
    string
    Remarks

    The alternative version of this logo can be found at BackOfficeLogoAlternative.

    View Source

    BackOfficeLogoAlternative

    Gets or sets a value for the path to the alternative backoffice logo, which can be shown on top of a light background.

    Declaration
    public string BackOfficeLogoAlternative { get; set; }
    Property Value
    Type Description
    string
    Remarks

    This is the alternative version to the regular logo found at BackOfficeLogo.

    View Source

    ContentVersionCleanupPolicy

    Gets or sets the model representing the global content version cleanup policy

    Declaration
    public ContentVersionCleanupPolicySettings ContentVersionCleanupPolicy { get; set; }
    Property Value
    Type Description
    ContentVersionCleanupPolicySettings
    View Source

    DisableDeleteWhenReferenced

    Gets or sets a value indicating whether to disable the deletion of items referenced by other items.

    Declaration
    public bool DisableDeleteWhenReferenced { get; set; }
    Property Value
    Type Description
    bool
    View Source

    DisableUnpublishWhenReferenced

    Gets or sets a value indicating whether to disable the unpublishing of items referenced by other items.

    Declaration
    public bool DisableUnpublishWhenReferenced { get; set; }
    Property Value
    Type Description
    bool
    View Source

    DisallowedUploadedFileExtensions

    Gets or sets a value for the collection of file extensions that are disallowed for upload.

    Declaration
    public ISet<string> DisallowedUploadedFileExtensions { get; set; }
    Property Value
    Type Description
    ISet<string>
    View Source

    EnableMediaRecycleBinProtection

    Gets or sets a value indicating whether to enable or disable the recycle bin protection for media.

    Declaration
    public bool EnableMediaRecycleBinProtection { get; set; }
    Property Value
    Type Description
    bool
    Remarks

    When set to true, this will:

    • Rename media moved to the recycle bin to have a .deleted suffice (e.g. image.jpg will be renamed to image.deleted.jpg).
    • On restore, the media file will be renamed back to its original name.
    • A middleware component will be enabled to prevent access to media files in the recycle bin unless the user is authenticated with access to the media section.
    View Source

    Error404Collection

    Gets or sets a value for the collection of error pages.

    Declaration
    public IEnumerable<ContentErrorPage> Error404Collection { get; set; }
    Property Value
    Type Description
    IEnumerable<ContentErrorPage>
    View Source

    HideBackOfficeLogo

    Gets or sets a value indicating whether to hide the backoffice umbraco logo or not.

    Declaration
    [Obsolete("This setting is no longer used and will be removed in future versions. An alternative BackOffice logo can be set using the BackOfficeLogo setting.")]
    public bool HideBackOfficeLogo { get; set; }
    Property Value
    Type Description
    bool
    View Source

    Imaging

    Gets or sets a value for the content imaging settings.

    Declaration
    public ContentImagingSettings Imaging { get; set; }
    Property Value
    Type Description
    ContentImagingSettings
    View Source

    LoginBackgroundImage

    Gets or sets a value for the path to the login screen background image.

    Declaration
    public string LoginBackgroundImage { get; set; }
    Property Value
    Type Description
    string
    View Source

    LoginLogoImage

    Gets or sets a value for the path to the login screen logo image shown on top of the background image set in LoginBackgroundImage.

    Declaration
    public string LoginLogoImage { get; set; }
    Property Value
    Type Description
    string
    Remarks

    The alternative version of this logo can be found at LoginLogoImageAlternative.

    View Source

    LoginLogoImageAlternative

    Gets or sets a value for the path to the login screen logo image when shown on top of a light background (e.g. in mobile resolutions).

    Declaration
    public string LoginLogoImageAlternative { get; set; }
    Property Value
    Type Description
    string
    Remarks

    This is the alternative version to the regular logo found at LoginLogoImage.

    View Source

    Notifications

    Gets or sets a value for the content notification settings.

    Declaration
    public ContentNotificationSettings Notifications { get; set; }
    Property Value
    Type Description
    ContentNotificationSettings
    View Source

    PreviewBadge

    Gets or sets a value for the preview badge mark-up.

    Declaration
    public string PreviewBadge { get; set; }
    Property Value
    Type Description
    string
    View Source

    ResolveUrlsFromTextString

    Gets or sets a value indicating whether URLs should be resolved from text strings.

    Declaration
    public bool ResolveUrlsFromTextString { get; set; }
    Property Value
    Type Description
    bool
    View Source

    ShowDeprecatedPropertyEditors

    Gets or sets a value indicating whether deprecated property editors should be shown.

    Declaration
    public bool ShowDeprecatedPropertyEditors { get; set; }
    Property Value
    Type Description
    bool
    View Source

    ShowDomainWarnings

    Gets or sets a value indicating whether to show domain warnings.

    Declaration
    public bool ShowDomainWarnings { get; set; }
    Property Value
    Type Description
    bool
    View Source

    ShowUnroutableContentWarnings

    Gets or sets a value indicating whether to show unroutable content warnings.

    Declaration
    public bool ShowUnroutableContentWarnings { get; set; }
    Property Value
    Type Description
    bool
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX