Is there the equivalent to Documents in an ascx transformation? it doesn't seem to be available?I'm finding myself doing things like this in CMSTransformations.cs and it feels a bit wrong:public TreeNode CurrentItemParent()
{
var dataRow = ((DataRowView)this.DataItem).Row;
if (dataRow != null)
{
var itemAsTreeNode = CMS.DocumentEngine.TreeNode.New(dataRow);
return itemAsTreeNode.Parent;
}
return null;
}
↧