Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

EPiServer 7 to 7.5 Migration

Vote:
 

Hi,

Once I migrate EPiServer code from 7 to 7.5 I am getting the below errors:

  • 'EpiServer.Web.PageExtensions.ContextMenu' does not contain a definition for ‘Current’
  • 'EpiServer.Web.PageExtensions.ContextMenu' does not contain a definition for ‘Menu’ and no extension method ‘Menu’ accepting a  first argument of type 'EpiServer.Web.PageExtensions.ContextMenu' could be found(are you missing a using directive or an assembly reference?)
  • 'EpiServer.Web.PageExtensions.ContextMenu' does not contain a definition for ‘CurrentPage and no extension method ‘CurrentPage’ accepting a  first argument of type 'EpiServer.Web.UI.Control’ could be found(are you missing a using directive or an assembly reference?)
  • The name 'EditorToolOptions' does not exist in the current context.

Any idea as to how we can fix these?

#122419
Jun 02, 2015 13:41
Vote:
 

The context menu is no more in cms 7.5

http://talk.alfnilsson.se/2014/01/29/hooking-up-to-the-episerver-quicknavigator/

You could also have a look in the class lib and see that it is replace by the quicknavigator:

http://world.episerver.com/documentation/Class-library/?documentId=cms/8/DAD56B6C

And therefore marked as obsolete:

[ObsoleteAttribute("ContextMenu has been replaced with EPiServer.Web.PageExtensions.QuickNavigator.", 
	false)]
public class ContextMenu
#122434
Jun 02, 2015 15:30
Vote:
 

So I cant se a fix but you need to rewrite the code and might need to delete som stuff as well since you do not have the same options.

#122435
Jun 02, 2015 15:32
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.