diff --git a/src/Umbraco.Web/UmbracoHelper.cs b/src/Umbraco.Web/UmbracoHelper.cs
index 8b928454a4..fc7debaecd 100644
--- a/src/Umbraco.Web/UmbracoHelper.cs
+++ b/src/Umbraco.Web/UmbracoHelper.cs
@@ -249,13 +249,14 @@ namespace Umbraco.Web
attributesForItem.Add(i.Key, i.Value);
}
- var item = new Item()
- {
- NodeId = currentPage.Id.ToString(),
- Field = fieldAlias,
- TextIfEmpty = altText,
- LegacyAttributes = attributesForItem
- };
+ var item = new Item()
+ {
+ //NodeId = currentPage.Id.ToString();
+ Field = fieldAlias,
+ TextIfEmpty = altText,
+ LegacyAttributes = attributesForItem
+ };
+
var containerPage = new FormlessPage();
containerPage.Controls.Add(item);
diff --git a/src/Umbraco.Web/umbraco.presentation/umbraco/templateControls/ItemRenderer.cs b/src/Umbraco.Web/umbraco.presentation/umbraco/templateControls/ItemRenderer.cs
index 7a0b7a50f9..1d7371c5ac 100644
--- a/src/Umbraco.Web/umbraco.presentation/umbraco/templateControls/ItemRenderer.cs
+++ b/src/Umbraco.Web/umbraco.presentation/umbraco/templateControls/ItemRenderer.cs
@@ -107,7 +107,7 @@ namespace umbraco.presentation.templateControls
// content class to lookup field items
try
{
- tempElementContent = GetContentFromDatabase(item.Attributes, tempNodeId.Value, currentField);
+ tempElementContent = GetContentFromDatabase(item.LegacyAttributes, tempNodeId.Value, currentField);
}
catch
{
@@ -248,7 +248,7 @@ namespace umbraco.presentation.templateControls
/// The node id.
/// The field that should be fetched.
/// The contents of the from the content object
- protected virtual string GetContentFromDatabase(AttributeCollection itemAttributes, int nodeIdInt, string currentField)
+ protected virtual string GetContentFromDatabase(AttributeCollectionAdapter itemAttributes, int nodeIdInt, string currentField)
{
Content c = new Content(nodeIdInt);
@@ -256,7 +256,7 @@ namespace umbraco.presentation.templateControls
if (property == null)
throw new ArgumentException(String.Format("Could not find property {0} of node {1}.", currentField, nodeIdInt));
- item umbItem = new item(property.Value.ToString(), new AttributeCollectionAdapter(itemAttributes));
+ item umbItem = new item(property.Value.ToString(), itemAttributes);
string tempElementContent = umbItem.FieldContent;
// If the current content object is a document object, we'll only output it if it's published