How to get the node or documents for all cultures API

Pablo Alejo asked on June 25, 2015 23:49

Is there any way using the document query or helpers to get the node with both culture info or get all culture documents from a node id?

Recent Answers


Brenden Kehren answered on June 27, 2015 20:57

I use this in a transformation every now and then when I need to check if the sub pages are of a specific class.

CMS.DocumentEngine.DocumentHelper.GetDocuments().Path(Eval("NodeAliasPath")

You could also use:

CMS.DocumentEngine.DocumentHelper.GetDocuments().Where("NodeID = " + Eval("NodeID"))

And specify the culture you're searching for.

0 votesVote for this answer Mark as a Correct answer

Anton Grekhovodov answered on January 21, 2016 13:29

You can use this code to get all culture documents: DocumentHelper.GetDocuments().AllCultures().WhereEquals("NodeID", nodeID)

2 votesVote for this answer Mark as a Correct answer

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