|
|
|
|
@@ -25,7 +25,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The UmbracoSettings Class contains general settings information for the entire Umbraco instance based on information from the /config/umbracoSettings.config file
|
|
|
|
|
/// </summary>
|
|
|
|
|
internal class UmbracoSettings
|
|
|
|
|
public class UmbracoSettings
|
|
|
|
|
{
|
|
|
|
|
private static bool GetKeyValue(string key, bool defaultValue)
|
|
|
|
|
{
|
|
|
|
|
@@ -133,7 +133,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="key">The xpath query to the specific node.</param>
|
|
|
|
|
/// <returns>If found, it returns the specific configuration xml node.</returns>
|
|
|
|
|
public static XmlNode GetKeyAsNode(string key)
|
|
|
|
|
internal static XmlNode GetKeyAsNode(string key)
|
|
|
|
|
{
|
|
|
|
|
if (key == null)
|
|
|
|
|
throw new ArgumentException("Key cannot be null");
|
|
|
|
|
@@ -148,7 +148,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="key">The key.</param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public static string GetKey(string key)
|
|
|
|
|
internal static string GetKey(string key)
|
|
|
|
|
{
|
|
|
|
|
EnsureSettingsDocument();
|
|
|
|
|
|
|
|
|
|
@@ -185,7 +185,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// <value>
|
|
|
|
|
/// <c>true</c> if new directories are allowed otherwise, <c>false</c>.
|
|
|
|
|
/// </value>
|
|
|
|
|
public static bool UploadAllowDirectories
|
|
|
|
|
internal static bool UploadAllowDirectories
|
|
|
|
|
{
|
|
|
|
|
get { return bool.Parse(GetKey("/settings/content/UploadAllowDirectories")); }
|
|
|
|
|
}
|
|
|
|
|
@@ -212,7 +212,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// Gets a value indicating whether logging is enabled in umbracoSettings.config (/settings/logging/enableLogging).
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value><c>true</c> if logging is enabled; otherwise, <c>false</c>.</value>
|
|
|
|
|
public static bool EnableLogging
|
|
|
|
|
internal static bool EnableLogging
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
@@ -227,7 +227,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// Gets a value indicating whether logging happens async.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value><c>true</c> if async logging is enabled; otherwise, <c>false</c>.</value>
|
|
|
|
|
public static bool EnableAsyncLogging
|
|
|
|
|
internal static bool EnableAsyncLogging
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
@@ -242,7 +242,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the assembly of an external logger that can be used to store log items in 3rd party systems
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static string ExternalLoggerAssembly
|
|
|
|
|
internal static string ExternalLoggerAssembly
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
@@ -254,7 +254,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the type of an external logger that can be used to store log items in 3rd party systems
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static string ExternalLoggerType
|
|
|
|
|
internal static string ExternalLoggerType
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
@@ -266,7 +266,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Long Audit Trail to external log too
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static bool ExternalLoggerLogAuditTrail
|
|
|
|
|
internal static bool ExternalLoggerLogAuditTrail
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
@@ -285,7 +285,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Keep user alive as long as they have their browser open? Default is true
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static bool KeepUserLoggedIn
|
|
|
|
|
internal static bool KeepUserLoggedIn
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
@@ -300,7 +300,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Enables the experimental canvas (live) editing on the frontend of the website
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static bool EnableCanvasEditing
|
|
|
|
|
internal static bool EnableCanvasEditing
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
@@ -315,7 +315,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Show disabled users in the tree in the Users section in the backoffice
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static bool HideDisabledUsersInBackoffice
|
|
|
|
|
internal static bool HideDisabledUsersInBackoffice
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
@@ -331,7 +331,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// Gets a value indicating whether the logs will be auto cleaned
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value><c>true</c> if logs are to be automatically cleaned; otherwise, <c>false</c></value>
|
|
|
|
|
public static bool AutoCleanLogs
|
|
|
|
|
internal static bool AutoCleanLogs
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
@@ -346,7 +346,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the value indicating the log cleaning frequency (in miliseconds)
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static int CleaningMiliseconds
|
|
|
|
|
internal static int CleaningMiliseconds
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
@@ -358,7 +358,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static int MaxLogAge
|
|
|
|
|
internal static int MaxLogAge
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
@@ -374,7 +374,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// Gets the disabled log types.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The disabled log types.</value>
|
|
|
|
|
public static XmlNode DisabledLogTypes
|
|
|
|
|
internal static XmlNode DisabledLogTypes
|
|
|
|
|
{
|
|
|
|
|
get { return GetKeyAsNode("/settings/logging/disabledLogTypes"); }
|
|
|
|
|
}
|
|
|
|
|
@@ -383,7 +383,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// Gets the package server url.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The package server url.</value>
|
|
|
|
|
public static string PackageServer
|
|
|
|
|
internal static string PackageServer
|
|
|
|
|
{
|
|
|
|
|
get { return "packages.umbraco.org"; }
|
|
|
|
|
}
|
|
|
|
|
@@ -394,15 +394,14 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// Gets a value indicating whether umbraco will use domain prefixes.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value><c>true</c> if umbraco will use domain prefixes; otherwise, <c>false</c>.</value>
|
|
|
|
|
// TODO rename as EnforceAbsoluteUrls
|
|
|
|
|
public static bool UseDomainPrefixes
|
|
|
|
|
internal static bool UseDomainPrefixes
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
// default: false
|
|
|
|
|
return _useDomainPrefixes ?? GetKeyValue("/settings/requestHandler/useDomainPrefixes", false);
|
|
|
|
|
}
|
|
|
|
|
internal set
|
|
|
|
|
/*internal*/ set
|
|
|
|
|
{
|
|
|
|
|
// for unit tests only
|
|
|
|
|
_useDomainPrefixes = value;
|
|
|
|
|
@@ -415,7 +414,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// This will add a trailing slash (/) to urls when in directory url mode
|
|
|
|
|
/// NOTICE: This will always return false if Directory Urls in not active
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static bool AddTrailingSlash
|
|
|
|
|
internal static bool AddTrailingSlash
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
@@ -423,7 +422,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
return GlobalSettings.UseDirectoryUrls
|
|
|
|
|
&& (_addTrailingSlash ?? GetKeyValue("/settings/requestHandler/addTrailingSlash", false));
|
|
|
|
|
}
|
|
|
|
|
internal set
|
|
|
|
|
/*internal*/ set
|
|
|
|
|
{
|
|
|
|
|
// for unit tests only
|
|
|
|
|
_addTrailingSlash = value;
|
|
|
|
|
@@ -434,7 +433,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// Gets a value indicating whether umbraco will use ASP.NET MasterPages for rendering instead of its propriatary templating system.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value><c>true</c> if umbraco will use ASP.NET MasterPages; otherwise, <c>false</c>.</value>
|
|
|
|
|
public static bool UseAspNetMasterPages
|
|
|
|
|
internal static bool UseAspNetMasterPages
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
@@ -456,7 +455,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// Gets a value indicating whether umbraco will attempt to load any skins to override default template files
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value><c>true</c> if umbraco will override templates with skins if present and configured <c>false</c>.</value>
|
|
|
|
|
public static bool EnableTemplateFolders
|
|
|
|
|
internal static bool EnableTemplateFolders
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
@@ -480,7 +479,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// razor DynamicNode typecasting detects XML and returns DynamicXml - Root elements that won't convert to DynamicXml
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static IEnumerable<string> NotDynamicXmlDocumentElements
|
|
|
|
|
internal static IEnumerable<string> NotDynamicXmlDocumentElements
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
@@ -569,7 +568,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// <value>
|
|
|
|
|
/// <c>true</c> if umbraco will clone XML cache on publish; otherwise, <c>false</c>.
|
|
|
|
|
/// </value>
|
|
|
|
|
public static bool CloneXmlCacheOnPublish
|
|
|
|
|
internal static bool CloneXmlCacheOnPublish
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
@@ -591,7 +590,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// Gets a value indicating whether rich text editor content should be parsed by tidy.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value><c>true</c> if content is parsed; otherwise, <c>false</c>.</value>
|
|
|
|
|
public static bool TidyEditorContent
|
|
|
|
|
internal static bool TidyEditorContent
|
|
|
|
|
{
|
|
|
|
|
get { return bool.Parse(GetKey("/settings/content/TidyEditorContent")); }
|
|
|
|
|
}
|
|
|
|
|
@@ -600,7 +599,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// Gets the encoding type for the tidyied content.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The encoding type as string.</value>
|
|
|
|
|
public static string TidyCharEncoding
|
|
|
|
|
internal static string TidyCharEncoding
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
@@ -617,12 +616,12 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// Gets the property context help option, this can either be 'text', 'icon' or 'none'
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The property context help option.</value>
|
|
|
|
|
public static string PropertyContextHelpOption
|
|
|
|
|
internal static string PropertyContextHelpOption
|
|
|
|
|
{
|
|
|
|
|
get { return GetKey("/settings/content/PropertyContextHelpOption").ToLower(); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static string DefaultBackofficeProvider
|
|
|
|
|
internal static string DefaultBackofficeProvider
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
@@ -639,14 +638,14 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Whether to force safe aliases (no spaces, no special characters) at businesslogic level on contenttypes and propertytypes
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static bool ForceSafeAliases
|
|
|
|
|
internal static bool ForceSafeAliases
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
// default: true
|
|
|
|
|
return _forceSafeAliases ?? GetKeyValue("/settings/content/ForceSafeAliases", true);
|
|
|
|
|
}
|
|
|
|
|
internal set
|
|
|
|
|
/*internal*/ set
|
|
|
|
|
{
|
|
|
|
|
// used for unit testing
|
|
|
|
|
_forceSafeAliases = value;
|
|
|
|
|
@@ -675,7 +674,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// Gets the allowed image file types.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The allowed image file types.</value>
|
|
|
|
|
public static string ImageFileTypes
|
|
|
|
|
internal static string ImageFileTypes
|
|
|
|
|
{
|
|
|
|
|
get { return GetKey("/settings/content/imaging/imageFileTypes").ToLowerInvariant(); }
|
|
|
|
|
}
|
|
|
|
|
@@ -684,7 +683,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// Gets the allowed script file types.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The allowed script file types.</value>
|
|
|
|
|
public static string ScriptFileTypes
|
|
|
|
|
internal static string ScriptFileTypes
|
|
|
|
|
{
|
|
|
|
|
get { return GetKey("/settings/content/scripteditor/scriptFileTypes"); }
|
|
|
|
|
}
|
|
|
|
|
@@ -695,14 +694,14 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// Gets the duration in seconds to cache queries to umbraco library member and media methods
|
|
|
|
|
/// Default is 1800 seconds (30 minutes)
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static int UmbracoLibraryCacheDuration
|
|
|
|
|
internal static int UmbracoLibraryCacheDuration
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
// default: 1800
|
|
|
|
|
return _umbracoLibraryCacheDuration ?? GetKeyValue("/settings/content/UmbracoLibraryCacheDuration", 1800);
|
|
|
|
|
}
|
|
|
|
|
internal set
|
|
|
|
|
/*internal*/ set
|
|
|
|
|
{
|
|
|
|
|
// for unit tests only
|
|
|
|
|
_umbracoLibraryCacheDuration = value;
|
|
|
|
|
@@ -713,7 +712,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// Gets the path to the scripts folder used by the script editor.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The script folder path.</value>
|
|
|
|
|
public static string ScriptFolderPath
|
|
|
|
|
internal static string ScriptFolderPath
|
|
|
|
|
{
|
|
|
|
|
get { return GetKey("/settings/content/scripteditor/scriptFolderPath"); }
|
|
|
|
|
}
|
|
|
|
|
@@ -721,7 +720,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Enabled or disable the script/code editor
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static bool ScriptDisableEditor
|
|
|
|
|
internal static bool ScriptDisableEditor
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
@@ -739,7 +738,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// ex: existingnodename.aspx would become existingnodename(1).aspx if a node with the same name is found
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value><c>true</c> if umbraco ensures unique node naming; otherwise, <c>false</c>.</value>
|
|
|
|
|
public static bool EnsureUniqueNaming
|
|
|
|
|
internal static bool EnsureUniqueNaming
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
@@ -758,7 +757,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// Gets the notification email sender.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The notification email sender.</value>
|
|
|
|
|
public static string NotificationEmailSender
|
|
|
|
|
internal static string NotificationEmailSender
|
|
|
|
|
{
|
|
|
|
|
get { return GetKey("/settings/content/notifications/email"); }
|
|
|
|
|
}
|
|
|
|
|
@@ -769,7 +768,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// <value>
|
|
|
|
|
/// <c>true</c> if html notification-emails are disabled; otherwise, <c>false</c>.
|
|
|
|
|
/// </value>
|
|
|
|
|
public static bool NotificationDisableHtmlEmail
|
|
|
|
|
internal static bool NotificationDisableHtmlEmail
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
@@ -782,12 +781,12 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// Gets the allowed attributes on images.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The allowed attributes on images.</value>
|
|
|
|
|
public static string ImageAllowedAttributes
|
|
|
|
|
internal static string ImageAllowedAttributes
|
|
|
|
|
{
|
|
|
|
|
get { return GetKey("/settings/content/imaging/allowedAttributes"); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static XmlNode ImageAutoFillImageProperties
|
|
|
|
|
internal static XmlNode ImageAutoFillImageProperties
|
|
|
|
|
{
|
|
|
|
|
get { return GetKeyAsNode("/settings/content/imaging/autoFillImageProperties"); }
|
|
|
|
|
}
|
|
|
|
|
@@ -796,7 +795,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// Gets the scheduled tasks as XML
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The scheduled tasks.</value>
|
|
|
|
|
public static XmlNode ScheduledTasks
|
|
|
|
|
internal static XmlNode ScheduledTasks
|
|
|
|
|
{
|
|
|
|
|
get { return GetKeyAsNode("/settings/scheduledTasks"); }
|
|
|
|
|
}
|
|
|
|
|
@@ -805,7 +804,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// Gets a list of characters that will be replaced when generating urls
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The URL replacement characters.</value>
|
|
|
|
|
public static XmlNode UrlReplaceCharacters
|
|
|
|
|
internal static XmlNode UrlReplaceCharacters
|
|
|
|
|
{
|
|
|
|
|
get { return GetKeyAsNode("/settings/requestHandler/urlReplacing"); }
|
|
|
|
|
}
|
|
|
|
|
@@ -813,7 +812,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Whether to replace double dashes from url (ie my--story----from--dash.aspx caused by multiple url replacement chars
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static bool RemoveDoubleDashesFromUrlReplacing
|
|
|
|
|
internal static bool RemoveDoubleDashesFromUrlReplacing
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
@@ -834,7 +833,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// Used for load-balancing high-traffic sites.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value><c>true</c> if umbraco uses distributed calls; otherwise, <c>false</c>.</value>
|
|
|
|
|
public static bool UseDistributedCalls
|
|
|
|
|
internal static bool UseDistributedCalls
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
@@ -854,7 +853,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// Gets the ID of the user with access rights to perform the distributed calls.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The distributed call user.</value>
|
|
|
|
|
public static int DistributedCallUser
|
|
|
|
|
internal static int DistributedCallUser
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
@@ -872,7 +871,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the html injected into a (x)html page if Umbraco is running in preview mode
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static string PreviewBadge
|
|
|
|
|
internal static string PreviewBadge
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
@@ -893,7 +892,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// and update their content cache accordingly, ensuring a consistent cache on all servers
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The distribution servers.</value>
|
|
|
|
|
public static XmlNode DistributionServers
|
|
|
|
|
internal static XmlNode DistributionServers
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
@@ -913,7 +912,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// A help page configuration specify language, user type, application, application url and
|
|
|
|
|
/// the target help page url.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static XmlNode HelpPages
|
|
|
|
|
internal static XmlNode HelpPages
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
@@ -935,7 +934,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// All packages installed from a repository gets the repository alias included in the install information
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The repository servers.</value>
|
|
|
|
|
public static XmlNode Repositories
|
|
|
|
|
internal static XmlNode Repositories
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
@@ -958,7 +957,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// <value>
|
|
|
|
|
/// <c>true</c> if umbraco will use the viewstate mover module; otherwise, <c>false</c>.
|
|
|
|
|
/// </value>
|
|
|
|
|
public static bool UseViewstateMoverModule
|
|
|
|
|
internal static bool UseViewstateMoverModule
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
@@ -980,7 +979,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// Tells us whether the Xml Content cache is disabled or not
|
|
|
|
|
/// Default is enabled
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static bool IsXmlContentCacheDisabled
|
|
|
|
|
internal static bool IsXmlContentCacheDisabled
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
@@ -1005,7 +1004,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// Makes it possible to updates environments by syncing the umbraco.config file across instances
|
|
|
|
|
/// Relates to http://umbraco.codeplex.com/workitem/30722
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static bool XmlContentCheckForDiskChanges
|
|
|
|
|
internal static bool XmlContentCheckForDiskChanges
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
@@ -1030,7 +1029,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// If disabled, only documents will generate data.
|
|
|
|
|
/// This feature is useful if anyone would like to see how data looked at a given time
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static bool EnableGlobalPreviewStorage
|
|
|
|
|
internal static bool EnableGlobalPreviewStorage
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
@@ -1058,14 +1057,14 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// <value>
|
|
|
|
|
/// <c>true</c> if yes, use the old node/data model; otherwise, <c>false</c>.
|
|
|
|
|
/// </value>
|
|
|
|
|
public static bool UseLegacyXmlSchema
|
|
|
|
|
internal static bool UseLegacyXmlSchema
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
// default: true
|
|
|
|
|
return _useLegacySchema ?? GetKeyValue("/settings/content/UseLegacyXmlSchema", false);
|
|
|
|
|
}
|
|
|
|
|
internal set
|
|
|
|
|
/*internal*/ set
|
|
|
|
|
{
|
|
|
|
|
// used for unit testing
|
|
|
|
|
_useLegacySchema = value;
|
|
|
|
|
@@ -1073,7 +1072,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Obsolete("This setting is not used anymore, the only file extensions that are supported are .cs and .vb files")]
|
|
|
|
|
public static IEnumerable<string> AppCodeFileExtensionsList
|
|
|
|
|
internal static IEnumerable<string> AppCodeFileExtensionsList
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
@@ -1084,7 +1083,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Obsolete("This setting is not used anymore, the only file extensions that are supported are .cs and .vb files")]
|
|
|
|
|
public static XmlNode AppCodeFileExtensions
|
|
|
|
|
internal static XmlNode AppCodeFileExtensions
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
@@ -1106,7 +1105,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// Tells us whether the Xml to always update disk cache, when changes are made to content
|
|
|
|
|
/// Default is enabled
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static bool ContinouslyUpdateXmlDiskCache
|
|
|
|
|
internal static bool ContinouslyUpdateXmlDiskCache
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
@@ -1132,7 +1131,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// have a splash page
|
|
|
|
|
/// Default is disabled
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static bool EnableSplashWhileLoading
|
|
|
|
|
internal static bool EnableSplashWhileLoading
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
@@ -1153,7 +1152,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static bool? _resolveUrlsFromTextString;
|
|
|
|
|
public static bool ResolveUrlsFromTextString
|
|
|
|
|
internal static bool ResolveUrlsFromTextString
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
@@ -1190,7 +1189,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// is used instead of the masterpages editor
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value><c>true</c> if umbraco defaults to using MVC views for templating, otherwise <c>false</c>.</value>
|
|
|
|
|
public static RenderingEngine DefaultRenderingEngine
|
|
|
|
|
internal static RenderingEngine DefaultRenderingEngine
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
@@ -1231,7 +1230,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// - Throw - Throw an exception and invoke the global error handler (if one is defined, if not you'll get a YSOD)
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>MacroErrorBehaviour enum defining how to handle macro errors.</value>
|
|
|
|
|
public static MacroErrorBehaviour MacroErrorBehaviour
|
|
|
|
|
internal static MacroErrorBehaviour MacroErrorBehaviour
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
@@ -1467,7 +1466,7 @@ namespace Umbraco.Core.Configuration
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <typeparam name="T">The type of the UmbracoConfigurationSectiont.</typeparam>
|
|
|
|
|
/// <returns>The UmbracoConfigurationSection of the specified type.</returns>
|
|
|
|
|
internal static T For<T>()
|
|
|
|
|
public static T For<T>()
|
|
|
|
|
where T : UmbracoConfigurationSection, new()
|
|
|
|
|
{
|
|
|
|
|
var sectionType = typeof (T);
|
|
|
|
|
|