i have used this in the past to get the current document url. CMSContext.CurrentDocument.NodeAliasPath but in 8.1 it doesn't work. how do i get the current documents path?
Hello,
In the code -> CMS.DocumentEngine.DocumentContext.CurrentDocument.NodeAliasPath
CMS.DocumentEngine.DocumentContext.CurrentDocument.NodeAliasPath
In a macro -> {% CurrentDocument.NodeAliasPath |(identity)GlobalAdministrator%}
{% CurrentDocument.NodeAliasPath |(identity)GlobalAdministrator%}
Best regards, Jan Hermann
If your speaking of using a Macro in a we part take a look at the CurrentDocument or DocumentContext nodes in the Macro Explorer.
Mark, check out the API changes here, pretty good reference to use.
Please, sign in to be able to submit a new answer.