Moved ParseMacros from Init into Load in ItemRenderer to fix an issue where the

NodeId property on the Item control was being set after the ItemRenderer had
already loaded it into memory.
This commit is contained in:
ksykora@ksykora-Win7
2012-11-21 07:54:17 -01:00
parent f0f7f6af55
commit c446be734c

View File

@@ -143,16 +143,16 @@ namespace umbraco.presentation.templateControls
/// </summary>
/// <param name="item">The item.</param>
public virtual void Init(Item item)
{
ParseMacros(item);
}
{ }
/// <summary>
/// Loads the specified item. To be called from the OnLoad method of Item.
/// </summary>
/// <param name="item">The item.</param>
public virtual void Load(Item item)
{ }
{
ParseMacros(item);
}
/// <summary>
/// Parses the macros inside the text, by creating child elements for each item.