Cms section
Describes the various option classes that are part of the Cms section of the configuration.
The Configuration topic describes the syntax used to configure options from various configuration sources, such as configuration files or environment variables.
ActivityOptions
Contain settings for how activities should be tracked within CMS.
Name | Default value | Description |
---|---|---|
ArchiveRetentionPeriod | 12Â | Gets or sets the number of months before archived activities are deleted. The default is 12 months. If you set the value to zero (0), CMS deletes the activities immediately. If you use a negative value (-1), CMS keeps the archive indefinitely (but this is not recommended). |
TrackContentSaveEvents | false | Gets or sets if Content Save events should be tracked and logged as an activity. |
TruncateMaximum | 100000 | The maximum number of activities is removed every time the truncate job runs. The default value is 100000 activities. Consider lowering this if you are experiencing timeouts. |
TruncateDatabaseTimeout | TimeSpan.Zero | Optional timeout that can be set for truncate database operations. If not set the default database timeout is used. |
IsArchivingEnabled | false | Enables (true) or disables (false) archiving. |
BlobProviderOptions
Contain settings for the BLOB provider used to manage binary data, for example, related to media.
Name | Default value | Description |
---|---|---|
BlobProviderBuilder | Optional delegate that can be specified to create an instance of a BlobProvider. | |
DefaultProvider | "default" | The name of the provider that is used as the default blob provider. |
Providers | Â FileBlobProvider | A dictionary of providers to use. If no providers are specified, FileBlobProvider is used as default. |
ClaimTypeOptions
Contain settings for how claims should be handled for synchronized users.
Name | Default value | Description |
---|---|---|
Email | ClaimTypes.Email | Specifies which claim contains an email address. |
GivenName | ClaimTypes.GivenName | Specifies which claim contains the given name. |
Surname | ClaimTypes.Surname | Specifies which claim contains surname. |
ClientGeolocationOptions
Contain settings for client geolocation.
Name | Default value | Description |
---|---|---|
LocationHeader | Specifies HTTP header to resolve client geolocation as an ISO 3166-1 Alpha-2 country code. | |
IPAddressHeader | The name of a header that is used to retrieve the IP address of the client. This setting should be used if the site is located behind a proxy server to get the right IP address of the client. | |
IPAddressHeaderProxyCount | 1 | The number of proxy servers in front of the web server listed by IP in the IPAddressHeader . |
ClientResourceOptions
Contain settings for how client resources should be handled.
Name | Default value | Description |
---|---|---|
Debug | false | Set to true to get non-optimized scripts that can be used for debugging purposes. |
Compress | true | Specifies if client-resource responses should be compressed. |
JsonResponseBuffer | 1000*256 | Specifies the buffer size for JSON responses buffered before writing to the response. |
CmsPolicyOptions
Contain settings for how policies within CMS.
Name | Default value | Description |
---|---|---|
EditRoles | CmsEditors, CmsAdmins, Administrators | The list of roles that is checked against the policy CmsPolicyNames.CmsEdit used, for example, for CMS edit access. |
PreviewRoles | CmsEditors, CmsAdmins, Administrators | The list of roles that are checked against the policy CmsPolicyNames.Preview  used for a preview of draft versions. |
CompositeFileProviderOptions
Contain settings for the composite file provider.
Name | Default value | Description |
---|---|---|
BasePathFileProviders | Â | A list of IBasePathFileProvider that the composite file provider will use. |
ContentAreaRenderingOptions
Contain settings for how content areas should be rendered.
Name | Default value | Description |
---|---|---|
TemplateTagSelectionStrategy | MissingTemplateTagSelectionStrategy.NoTag | Specifies which strategy that should be applied when a ContentArea item has a display option specified that does not match any registered template. |
ContentModelOptions
Contain settings for content modeling.
Name | Default value | Description |
---|---|---|
EnableModelSyncCommit | true | Set to false to disable the commit phase when synchronizing typed models. Content types will not be updated automatically. |
EnableSemanticVersioning | false | Set to true to enable semantic versioning of models. |
AlwaysUseModelName | false | Specifies if the class's Model name should be the content type's name. |
ContentOptions
Contain settings for how content should be managed.
Name | Default value | Description |
---|---|---|
VersionCacheSlidingExpiration | 10 min | Specifies a sliding cache timeout for content versions. Set to "0:0:0" to disable caching of versions. |
ContentCacheSlidingExpiration | 12 hours | Specifies a sliding cache timeout for published content. Set to "0:0:0" to disable caching of published content. |
StringCompressionThreshold | 0 | Specifies the number of characters for when compression should be activated for long strings. 0 means compression is disabled. |
PropertyLazyLoadThreshold | 255 | Specifies the number of characters for when a long string property should be lazy loaded. |
MaximumVersions | 20 | Specifies the maximum number of previously published versions that will be kept. |
InMemoryCopyThreshold | 50 | Specifies the maximum number of content items for when content copying is done in memory. |
MaximumContentItemsPerDatabaseRequest | 2000 | Specifies the maximum number of content items loaded in the same database request. |
InvalidateRemoteCacheForVersions | true | Specifies if a version change should be propagated to other application instances. |
EnableDynamicProperties | false | Specifies if dynamic properties should be enabled. |
ProxyType | Auto | Specifies which type of proxies that should be used for content. ProxyType enum has the following values: - Auto – Optimized proxies are used unless custom castle extensions are registered.- Castle – Castle proxies are used.- Optimized – Performance-optimized proxies are used. |
Providers | A dictionary of the content providers to use. |
DataAccessOptions
Contain settings for database access.
Name | Default value | Description |
---|---|---|
ConnectionStrings | The connectionstrings for Optimizely Content Management System (CMS) to use. | |
DefaultConnectionStringName  | EPiServerDB | The name of the connection string for CMS to use as default. |
Retries | 3 | The number of retries that should be performed for transient errors. |
RetryDelay | 100 ms | The time to delay before a retry is applied. |
DatabaseQueryTimeout | 30 s | The timeout to use for database connections. |
DatabaseMode | ReadWrite | The database mode the application executes under. DatabaseMode enum has the following values: - ReadWrite – The database supports both read and write operations.- ReadOnly – The database only supports read operations. |
DisableDateTimeKindValidation | false | Specifies if UTC validation of times in the database should be disabled. |
UpdateDatabaseSchema | true | Specifies if database schema changes should be automatically applied. |
CreateDatabaseSchema | true | Specifies if the database schema should be created if it does not exist. |
DisplayOptions
Used to register DisplayOption with CMS.
Name | Default value | Description |
---|---|---|
Add | Registers a DisplayOption instance. | |
Remove | Removes a previously registered DisplayOption instance. |
DynamicDataStoreOptions
Contain settings for Dynamic Data Store (DDS).
Name | Default value | Description |
---|---|---|
AutoResolveTypes | true | Specifies if automatic type resolving should be used. |
AutoRemapStores | true | Specifies if dynamic data store should automatically remap store definitions that have changed. |
DeleteAllOperationTimeout  |  10 min | The timeout used when all items in a store are deleted. |
EventProviderOptions
Contains settings for the event provider used in communication between applications.
Name | Default value | Description |
---|---|---|
EventProviderBuilder  | Optional delegate that can be specified to create an instance of an EventProvider. | |
Provider | NullEventProvider | The type string of the EventProvider to use. |
EnvironmentOptions
Contain settings for the application environment.
Name | Default value | Description |
---|---|---|
AppDataPath  | App_Data | The path to where application-specific resources, such as file-based BLOBS, are stored. |
ExternalApplicationOptions
Contain settings if there is an external separate delivery application.
Name | Default value | Description |
---|---|---|
OptimizeForDelivery | false | Can be specified to optimize ContentDeliveryAPI for CDN caching by disabling, for example, audience personalization. |
FileBlobProviderOptions
Contains settings for the file-based BLOB provider when configured to be used as a BLOB provider.
Name | Default value | Description |
---|---|---|
Path  | App_Data\blobs | The physical path to where file blobs are stored. If the path is not rooted, then it is considered relative to IHostEnvironment.ContentRootPath . |
KeepStructure | false | Set to true to keep the created folder structure even if folders are empty. |
GlobalizationSettingsOptions
Contain settings for how Globalization is handled.
Name | Default value | Description |
---|---|---|
CultureLanguageCode | "en-US" | The default CurrentCulture set for content request where the language cannot be determined from request. |
UICultureLanguageCode | "en" | The default CurrentUICulture set for content request where the language cannot be determined from request. |
GlobalizationSettingsOptions | If GlobalizationSettingsOptions.UseBrowserLanguagePreferences is true, the language preference from the web browser is used. |
HtmlOptions
Contain settings for how HTML content should be managed.
Name | Default value | Description |
---|---|---|
UnEncodedTags | "b", "i", "u", "br" | A list of HTML tags that are not encoded when HTML is inserted as text using WebStringHelper.EncodeForWebString . |
JsonFormatterOptions
Contain settings for assembly/type specific JSON serialization.
Name | Default value | Description |
---|---|---|
AssemblyModuleOutputFormatters | Assembly-specific JSON output formatter registrations. | |
TypeModuleOutputFormatters | Type-specific JSON output formatter registrations. | |
AssemblyModuleInputFormatters | Assembly-specific JSON input formatter registrations. | |
TypeModuleInputFormatters | Type-specific JSON input formatter registrations. | |
FallbackFormatterType | NewtonSoft | Formatter to use when no assembly or type registration applies. |
LinkValidatorOptions
Contains settings for assembly or type-specific JSON serialization.
Name | Default value | Description |
---|---|---|
ExternalLinkMinimumRequestInterval | 5 sec | The minimum time in seconds between requests to the same external host. |
MaximumRunTime | TimeSpan.Zero | The maximum time the job will run at one time. TimeSpan.Zero means there is no max time. |
RecheckInterval | 7 hours | The time that must elapse before a link is rechecked. |
ExternalLinkErrorThreshold | 100 | The job will stop if consecutive errors on external links exceed the threshold. |
ExcludePatterns | A list of regular expression patterns that are ignored for links by the link validator. | |
InternalLinkValidation | ValidationType.Api | Specifies how the link validator will validate internal links. ValidationType enum has the following values: - Off – No validation is done for internal links. - Api – Internal links are checked using API calls. - Request – Internal links are validated through HTTP calls. |
UserAgent | "EPiServer Link Checker" | The user agent is used when using HTTP requests for link validation. |
ProxyAddress | Optional web proxy address for the link checker to use when validating links. | |
ProxyUser | Optional web proxy user to authenticate proxy connection. | |
ProxyPassword | Optional web proxy password to authenticate the proxy connection. | |
ProxyDomain |
LocalizationOptions
Contain settings for localization of texts used in, for example, the edit user interface.
Name | Default value | Description |
---|---|---|
FallbackBehavior  | FallbackBehaviors.FallbackCulture FallbackBehaviors.Echo | Specifies which fallback behavior to use when a localization string does not exist. FallbackBehaviors enum has the following values:- None – An empty string is returned.- Echo – The key is returned unmodified.- MissingMessage – A message saying no resource was found is returned.- FallbackCulture – The resource is returned using the fallback culture if no match is found. Requires a fallback culture to be specified.- Null – A null string is returned. |
FallbackCulture | "en" | Specifies which fallback culture is used when a localization string does not exist in a specific language. |
Providers | A list of localization providers to use. |
MediaOptions
Contain settings for content media.
Name | Default value | Description |
---|---|---|
ExpirationTime  | 12 hours | The expiration value that is set on cache headers for publicly accessible media. |
CacheControl | auto | Setting for the Cache-Control header. auto means that it is set as public if media is publicly accessible; if not, it is set as private. Possible values are values that are acceptable as Cache-Control header values. |
DefaultContentType | application/octet-stream | The default content type for a request if the ContentType cannot be determined from context. |
PreProcessors | MediaOptionsStaticFilePreProcessor | A list of pre-processors called before the body of a media request is written. A pre-processor can be used to set or modify response headers. |
Network
Contain network settings in SmtpOptions
when network delivery options have been selected.
Name | Default value | Description |
---|---|---|
Host | Specifies the SMTP network host to use. | |
Port | Specifies the port for the network host. | |
UserName | SMTP username. Leave empty to disable authentication | |
Password | SMTP password. | |
UseSsl | Specifies if SSL should be used. |
NotificationOptions
Contain settings for notifications sent from CMS.
Name | Default value | Description |
---|---|---|
NotificationEmailAddress | System default email address for notification emails. | |
NotificationEmailDisplayName | "Episerver" | System default sender name for notification emails. |
RoutingOptions
Contain settings for content routing.
Name | Default value | Description |
---|---|---|
StrictLanguageRouting | true | Defines if strict language determination should be used during routing. |
UseTrailingSlash | true | Gets or sets a value indicating whether a trailing slash should be added for URLs to the content, except if a content segment has an extension. |
UrlCacheExpirationTime | 5 min | Specifies the sliding cache timeout for generated content URLs. |
ShortcutRedirection | HttpRedirect.Permanent | Specifies how redirection for shortcuts should be handled. HttpRedirect enum has the following values: - None – No redirection is done.- Temporary – A temporary redirection is done.- Permanent – A permanent redirection is done. |
UsePrimaryHostForOutgoingUrls | false | Specifies that the HostDefinitionType.Primary should be used when generating outgoing URL. Note:Â This setting is considered a pre-release API and might change in a minor version. |
SchedulerOptions
Contain settings for how scheduled jobs should be managed.
Name | Default value | Description |
---|---|---|
Enabled | true | Specifies if scheduled jobs should be enabled for the application. |
MaximumExecutionAttempts | 10 | Specifies the maximum number of times a job should be re-scheduled for execution when the prior execution was interrupted due to server shutdown. |
ContentCacheSlidingExpiration | 1 minute | The sliding cache for how long content is cached when retrieved from a scheduled job. |
ScriptParserOptions
Contain settings for how HTML and uploaded media files should be parsed.
Note
If
ElementAttributes
is empty then no parsing is performed.
Name | Default value | Description |
---|---|---|
SavingMode | ScriptParserMode.Keep | Specifies an action if an illegal element or attribute is detected during save of HTML to storage. - Keep – Keep the element or attribute.- Remove – Remove the element or attribute.- ThrowException – Throw an exception. |
LoadingMode | ScriptParserMode.Keep | Specifies an action if an illegal element or attribute is detected during load of HTML from storage. - Keep – Keep the element/attribute.- Remove – Remove the element/attribute.- ThrowException – Throw an exception. |
MediaUploadMode | ScriptParserMode.Keep | Specifies an action if an illegal element or attribute is detected during the upload of media files, like HTML. - Keep – Keep the element/attribute.- Remove – Remove the element/attribute.- ThrowException – Throw an exception. |
MediaExtensionsToParse | None | Specifies media extensions to be parsed during upload, for example '.html' and/or '.svg'. |
ElementAttributes | None | Specifies elements and attributes that are allowed or not allowed depending on the Mode setting. You can specify a wildcard character \* to specify a set of attributes. For example an attribute as on\* would then apply to all attributes starting with 'on' like onclicked or onfocus .Note: If ElementAttributes is empty then no parsing is performed. |
Mode | ScriptParserOperationMode.Allow | Specifies if ElementAttributes should be treated as allowed or blocked.- Allow – Only entries with ElementAttributes are allowed.- Block – Entries within ElementAttributes are not allowed. |
IllegalUriSchemes | None | Specifies which schemes are not allowed for URI values for link attributes like the href attribute on the a element. An example is javascript to prevent URIs like javascript:onclicked . |
SmtpOptions
Contain settings for SMTP.
Name | Default value | Description |
---|---|---|
DeliveryMethod | DeliveryMethod.Network | Specifies which delivery method to use. DeliveryMethod enum has the following values: - Network – Configures the email client to send emails with SMTP.- SpecifiedPickupDirectory – Configures the email client to put mails in a disk folder. |
SpecifiedPickupDirectory | Specifies the directory given that the pickup directory delivery method was chosen. | |
Network | Specifies various network settings given that the network delivery method was chosen. |
SystemTextJsonSettingsOptions
Contain settings to configure System.Text.Json-based
serializer when used as serializer for type or assembly.
Name | Default value | Description |
---|---|---|
SerializerOptions | The JSON options that should be used by serializer instance. |
TemplateOptions
Contain settings for template registration in CMS.
Name | Default value | Description |
---|---|---|
TemplateAssemblies | Empty | If specified, only assemblies within a list are scanned for templates; otherwise, all assemblies in context are scanned for assemblies. |
ScanViewsForTemplateRegistration | true | Specifies if Views should be scanned according to the convention that views with a name matching a content model are registered as a template for the content model. |
UIOptions
Contain settings for CMS edit user interface.
Name | Default value | Description |
---|---|---|
UtilUrl | "~/Util/" | Gets or sets the URL to the Util part of the UI application. It must be a Web URL and may include a scheme and port. |
EditUrl | "~/EPiServer/CMS/" | Gets or sets the URL to the edit UI. It must be a Web URL, and may include a scheme and port. |
ApprovalStepRoleUserLimit | 100 | Defines the number of user roles triggering a warning when an administrator sets up an approval step. |
WebSocketEnabled | true | Defines if the WebSocket connection between the server and the client should be enabled. |
PermanentEditRetainPeriod | 30 days | Gets or sets the retain period for the page's "permanent edit" status. |
PreviewTimeout | 15000 ms | The timeout in milliseconds for the time to load a preview of a content version. |
UIShowGlobalizationUserInterface | true | Defines if the globalization module should be used. |
DisableVersionDeletion | false | Defines if it should be possible to delete versions from UI. |
AutoPublishMediaOnUpload | true | Specifies if media should automatically be published when uploaded to CMS. |
UrlSegmentOptions
Contain settings for how URL segments should be managed.
Name | Default value | Description |
---|---|---|
UseLowercase | true | Indicates if only lowercase characters should be used in URL segments. |
SupportIriCharacters | false | Indicates if segments supports IRI characters. ValidCharacters are set to allow characters not allowed in URL segments according to URL specification. This should be set to true to indicate that the segment might need encoding. |
ValidCharacters | "A-Za-z0-9-_~.$"; | Gets or sets the characters that are valid to use as URL segment; will be used as argument to Regexp . |
CharacterMap | Specifies a mapping table for characters not allowed due to ValidCharacters . | |
ReservedSegments | A list of reserved segments that are not allowed as URL segments. |
VirtualRoleOptions
Contain settings for virtual roles.
Name | Default value | Description |
---|---|---|
Roles | Everyone, Anonymous, Authenticated | A list of the virtual roles defined in CMS. |
VisitorGroupOptions
Contain settings for audiences (formerly called visitor groups).
Name | Default value | Description |
---|---|---|
StatisticsPersistanceInterval | 20 min | Specifies how often audience statistics are persisted. |
EnableStatistics | true | Specifies if statistics over audiences should be collected. |
EnableSession | false | Specifies if audience data should be stored in session. |
Updated 8 days ago