I’m upgrading an existing kentico webapp to version 8 but I’m unsure where the CMS.CMSHelper.CMSContext library is now? I can’t seem to find any documentation on how to update existing code that relied on those libraries to work.
For example, I’ve used calls like this in the past to set up different page elements dynamically:
Anyone have any ideas? Thanks
Hi Cesar,
CMSContext was broken up into sevral classes. The members you are looking for are now:
and
Hope this helps!
Thanks so much Vilém!
Thanks for the above, where am I able to find the CMSContext.GetUrl method and is there somewhere that references the Kentico 7 -> 8 api refactoring?
Peter, the GetUrl method is here CMS.DocumentEngine.DocumentURLProvider.GetUrl. I found the API CHM to be useful for changes like these.
I have find CMS.CMSHelper.CMSConetxt methode in CMS.DocumentEngine; Here i have find "node alias path" DocumentContext.CurrentDocument.NodeAliasPath.Contains("NodeAliasTextHere");
If you need to find where did parts of our API go, you can find it here https://devnet.kentico.com/documentation/api-changes/kentico-8?page=1
Please, sign in to be able to submit a new answer.