Class ContentSettings
Typed configuration options for content settings.
Inheritance
Namespace: Umbraco.Cms.Core.Configuration.Models
Assembly: Umbraco.Core.dll
Syntax
public class ContentSettings
Properties
View SourceAllowEditInvariantFromNonDefault
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 |
---|---|
System.Boolean |
AllowedMediaHosts
Gets or sets the allowed external host for media. If empty only relative paths are allowed.
Declaration
public string[] AllowedMediaHosts { get; set; }
Property Value
Type | Description |
---|---|
System.String[] |
AllowedUploadedFileExtensions
Gets or sets a value for the collection of file extensions that are allowed for upload.
Declaration
public string[] AllowedUploadedFileExtensions { get; set; }
Property Value
Type | Description |
---|---|
System.String[] |
AllowedUploadFiles
Gets or sets a value for the collection of file extensions that are allowed for upload.
Declaration
public IEnumerable<string> AllowedUploadFiles { get; set; }
Property Value
Type | Description |
---|---|
IEnumerable<System.String> |
ContentVersionCleanupPolicy
Gets or sets the model representing the global content version cleanup policy
Declaration
public ContentVersionCleanupPolicySettings ContentVersionCleanupPolicy { get; set; }
Property Value
Type | Description |
---|---|
ContentVersionCleanupPolicySettings |
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 |
---|---|
System.Boolean |
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 |
---|---|
System.Boolean |
DisallowedUploadedFileExtensions
Gets or sets a value for the collection of file extensions that are disallowed for upload.
Declaration
public string[] DisallowedUploadedFileExtensions { get; set; }
Property Value
Type | Description |
---|---|
System.String[] |
DisallowedUploadFiles
Gets or sets a value for the collection of file extensions that are disallowed for upload.
Declaration
public IEnumerable<string> DisallowedUploadFiles { get; set; }
Property Value
Type | Description |
---|---|
IEnumerable<System.String> |
Error404Collection
Gets or sets a value for the collection of error pages.
Declaration
public ContentErrorPage[] Error404Collection { get; set; }
Property Value
Type | Description |
---|---|
ContentErrorPage[] |
HideBackOfficeLogo
Gets or sets a value indicating whether to hide the backoffice umbraco logo or not.
Declaration
public bool HideBackOfficeLogo { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Imaging
Gets or sets a value for the content imaging settings.
Declaration
public ContentImagingSettings Imaging { get; set; }
Property Value
Type | Description |
---|---|
ContentImagingSettings |
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 |
---|---|
System.String |
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 |
---|---|
System.String |
Remarks
The alternative version of this logo can be found at LoginLogoImageAlternative.
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 |
---|---|
System.String |
Remarks
This is the alternative version to the regular logo found at LoginLogoImage.
MacroErrors
Gets or sets a value for the macro error behaviour.
Declaration
public MacroErrorBehaviour MacroErrors { get; set; }
Property Value
Type | Description |
---|---|
MacroErrorBehaviour |
Notifications
Gets or sets a value for the content notification settings.
Declaration
public ContentNotificationSettings Notifications { get; set; }
Property Value
Type | Description |
---|---|
ContentNotificationSettings |
PreviewBadge
Gets or sets a value for the preview badge mark-up.
Declaration
public string PreviewBadge { get; set; }
Property Value
Type | Description |
---|---|
System.String |
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 |
---|---|
System.Boolean |
ShowDeprecatedPropertyEditors
Gets or sets a value indicating whether deprecated property editors should be shown.
Declaration
public bool ShowDeprecatedPropertyEditors { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ShowDomainWarnings
Gets or sets a value indicating whether to show domain warnings.
Declaration
public bool ShowDomainWarnings { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |