18 using erminas.SmartAPI.CMS.Project.ContentClasses.Elements;
20 namespace erminas.SmartAPI.CMS.Project.Pages.Elements
29 internal StandardFieldUrl(
IProject project, XmlElement xmlElement) : base(project, xmlElement)
34 : base(project, guid, languageVariant)
38 protected override Uri FromString(
string value)
42 return string.IsNullOrEmpty(value) ? null :
new Uri(value);
43 }
catch (UriFormatException e)
45 throw new ArgumentException(
string.Format(
"Invalid URL: {0}", value), e);
49 protected override string GetXmlNodeValue()
51 return Value != null ? Value.ToString() :
"";
54 protected override void LoadWholeStandardField()