This is my function.
private TreeNode GetParentNode()
TreeProvider tree = new TreeProvider(MembershipContext.AuthenticatedUser);
return tree.SelectSingleNode(SiteName, CMSContext.ResolveCurrentPath(NewDocumentPath), TreeProvider.ALL_CULTURES);
After upgrading from Kentico version7 to Kentico v8, "CMSContext.ResolveCurrentPath(NewDocumentPath)" does not exist in the current text. So What Coding can I instead of it. Please help me to Provider API changed from v7 to v8 to replace "CMSContext.ResolveCurrentPath(NewDocumentPath)", but I still can get the same result as what I get from previous(V7). Thank you beforehand :)
If you run into any more trouble, you can look up API chages and suggested alternative on the API-changes page:
Oh I see, we can use CMS.MacroEngine.MacroResolver.ResolveCurrentPath(Path) in Kentico 8
Please, sign in to be able to submit a new answer.