Refactoring UpdateContentCache strategy for generating xml cache upon publishing indepedent of the legacy umbraco.content.Instance class.

This commit is contained in:
sitereactor
2012-11-06 20:03:36 -01:00
parent 9b77eefb4c
commit 372f7a7725
10 changed files with 138 additions and 22 deletions

View File

@@ -13,7 +13,7 @@ namespace Umbraco.Core.Models
/// <returns>Xml of the property and its value</returns>
public static XElement ToXml(this Property property)
{
string nodeName = property.Alias.ToUmbracoAlias();
string nodeName = property.Alias.ToUmbracoAlias(StringAliasCaseType.CamelCase, true);
var xd = new XmlDocument();
XmlNode xmlNode = xd.CreateNode(XmlNodeType.Element, nodeName, "");