Quantcast
Channel: DevNet Questions
Viewing all articles
Browse latest Browse all 8836

Equivalent of Documents macro in ascx transformation?

$
0
0
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; }

Viewing all articles
Browse latest Browse all 8836

Trending Articles