Reference/Help docs on properties on Document for transforms?

Tom F asked on December 1, 2016 06:03

Hi I was wondering if there's a list somewhere of properties on a document?

I'm trying to check if a document is of a given document type in a transform.

Thanks, Tom

Correct Answer

Anton Grekhovodov answered on December 1, 2016 10:48

Hi Tom,

Yes, it's not available in ascx transformation.

Try DataItem.Parent.ClassName, maybe it helps

1 votesVote for this answer Unmark Correct answer

Recent Answers


Anton Grekhovodov answered on December 1, 2016 07:13

Look at CMS.DocumentEngine.TreeNode class.

If you want to check type, use ClassName property

3 votesVote for this answer Mark as a Correct answer

Tom F answered on December 1, 2016 07:56 (last edited on December 1, 2016 07:56)

Thanks very much Anton!

Any idea why Documents[NodeAliasPath].Parent.ClassName doesn't work in an ascx transformation?

Documents doesn't seem to be available?

0 votesVote for this answer Mark as a Correct answer

Tom F answered on December 1, 2016 12:20

Thanks Anton I really appreciate it

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.