I'm writing a transformation and need to get the culture of the page/document. I've tried
CMS.DocumentEngine.PageInfo.DocumentCulture or CMS.DocumentEngine.TreeNode.DocumentCulture
But keep getting an error An object reference is required for the non-static field, method, or property 'CMS.DocumentEngine.TreeNode.DocumentCulture.get'
What am I doing wrong? Or is there an easier way?
Hello,
please use following code instead:
CMS.DocumentEngine.DocumentContext.CurrentDocument.DocumentCulture
Best regards, Jan Hermann
It was a grate answer for my searches Great Idea finally it worked !!
Please, sign in to be able to submit a new answer.