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. |
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. |
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. |
BackOfficeLogo
Gets or sets a value for the path to the backoffice logo.
Declaration
public string BackOfficeLogo { get; set; }
Property Value
Type | Description |
---|---|
System. |
ContentVersionCleanupPolicy
Gets or sets the model representing the global content version cleanup policy
Declaration
public ContentVersionCleanupPolicySettings ContentVersionCleanupPolicy { get; set; }
Property Value
Type | Description |
---|---|
Content |
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. |
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. |
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. |
Error404Collection
Gets or sets a value for the collection of error pages.
Declaration
public ContentErrorPage[] Error404Collection { get; set; }
Property Value
Type | Description |
---|---|
Content |
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. |
Imaging
Gets or sets a value for the content imaging settings.
Declaration
public ContentImagingSettings Imaging { get; set; }
Property Value
Type | Description |
---|---|
Content |
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. |
LoginLogoImage
Gets or sets a value for the path to the login screen logo image
shown on top of the background image set in Login
Declaration
public string LoginLogoImage { get; set; }
Property Value
Type | Description |
---|---|
System. |
Remarks
The alternative version of this logo can be found at Login
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. |
Remarks
This is the alternative version to the regular logo found at Login
Notifications
Gets or sets a value for the content notification settings.
Declaration
public ContentNotificationSettings Notifications { get; set; }
Property Value
Type | Description |
---|---|
Content |
PreviewBadge
Gets or sets a value for the preview badge mark-up.
Declaration
public string PreviewBadge { get; set; }
Property Value
Type | Description |
---|---|
System. |
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. |
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. |
ShowDomainWarnings
Gets or sets a value indicating whether to show domain warnings.
Declaration
public bool ShowDomainWarnings { get; set; }
Property Value
Type | Description |
---|---|
System. |
ShowUnroutableContentWarnings
Gets or sets a value indicating whether to show unroutable content warnings.
Declaration
public bool ShowUnroutableContentWarnings { get; set; }
Property Value
Type | Description |
---|---|
System. |