Files
Umbraco-CMS/src/Umbraco.Core/Configuration/UmbracoSettings/HelpElement.cs

31 lines
913 B
C#

using System.Collections.Generic;
using System.Configuration;
namespace Umbraco.Core.Configuration.UmbracoSettings
{
internal class HelpElement : ConfigurationElement, IHelpSection
{
[ConfigurationProperty("defaultUrl", DefaultValue = "http://our.umbraco.org/wiki/umbraco-help/{0}/{1}")]
public string DefaultUrl
{
get { return (string) base["defaultUrl"]; }
}
[ConfigurationCollection(typeof (LinksCollection), AddItemName = "link")]
[ConfigurationProperty("", IsDefaultCollection = true)]
public LinksCollection Links
{
get { return (LinksCollection) base[""]; }
}
string IHelpSection.DefaultUrl
{
get { return DefaultUrl; }
}
IEnumerable<ILink> IHelpSection.Links
{
get { return Links; }
}
}
}