Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Fabian 68 posts 172 karma points
    Sep 09, 2016 @ 15:33

    Vorto not working in the Extended Content of Merchello

    Vorto is not working correctly in the Extended Content of Merchello, while it works just fine in the normal umbraco content.

    The following error is being thrown - "Cannot read property 'contentTypeAlias' of null" on line 305 in the vorto.js file, which is located in the App_Plugins folder.

    I have debugged the problem and basically the issue is that "editorState.current" is being null. This is due that - "editorState" is expected to be injected in and filled but instead it is just being null.

    After some research, I have found out that the package, called - "archetype" also has this issue and there is this workaround for it:, which works but it is kind of hacky. On vorto I have found nothing, thus I tried to make this solution also work for it, but I wasn't successful since vorto works a little bit different.

    Now I ran out of ideas how to fix this, thus I came here for your help. I think I have supplied enough detail on the issue, but if something is not clear please let me know.

    Can someone help me out in fixing such issue please?


  • Fabian 68 posts 172 karma points
    Sep 12, 2016 @ 10:54

    I have now updated the description to be more detailed. Can anyone give me a hand on this please? Thanks

  • Fabian 68 posts 172 karma points
    Sep 14, 2016 @ 07:49

    Anyone has any input on this? Thanks

  • Fabian 68 posts 172 karma points
    Sep 15, 2016 @ 12:15

    To anyone in the future who has this same issue I have fixed it by doing the following:

    Added the following block of code in line 13 of the vorto.js file, which can be found in the App_Plugins folder:

    if (currentSection == "merchello") 
                    currentSection = "content";
                    // 2871 is the id of any umbraco content node
           = 2871;
                    // 1129 is the id of the home page umbraco content node
                   editorState.current.parentId = 1129;


    Also I have added the following line of code on line 6957 of the merchello.controllers.js file, which can also be found in the App_Plugins folder


    Its a little bit of hacking but its a workaround that works.

Please Sign in or register to post replies

Write your reply to: