Copied to clipboard

Flag this post as spam?

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


  • Lesley 107 posts 350 karma points
    Sep 15, 2016 @ 21:59
    Lesley
    0

    Custom macro parameter type not available after upgrade to Umbraco 7

    We have a site that we have just upgraded from v6.0.5 to v7.5.3.

    Within the site we have a number of macros with parameters based on a custom macro parameter type.

    After upgrading, our custom parameter type no longer appears in the Parameters Type dropdown list for the macros.

    What do we need to do to get it to appear again?

  • Lesley 107 posts 350 karma points
    Sep 15, 2016 @ 23:09
    Lesley
    101

    Figured it out.

    Our old custom property editor no longer works in v7 so I had to create a new App_Plugins property editor based on https://our.umbraco.org/documentation/Tutorials/Creating-a-Property-Editor/

  • Marc Goodson 2157 posts 14434 karma points MVP 9x c-trib
    Sep 15, 2016 @ 23:10
    Marc Goodson
    0

    Hi Lesley

    Because of the different with the way the Umbraco Backoffice is built between Umbraco 6 and 7 you will need to implement the custom macro parameter type functionality so that it works within the context of Umbraco 7 and AngularJS.

    You can do this by following the documentation of how to create a custom property editor in Umbraco 7,

    https://our.umbraco.org/documentation/tutorials/Creating-a-Property-Editor/

    and then setting the isParameterEditor flag to true in the manifest file for the property editor.

    How hard this is to do depends on the custom types you currently have.

    Theres a bit of information about creating a custom macro parameter in this blog post here:

    http://tooorangey.co.uk/posts/custom-macro-parameter-types-editor-odyssey/

    regards

    Marc

  • Lesley 107 posts 350 karma points
    Sep 15, 2016 @ 23:15
    Lesley
    1

    Thanks Marc,

    Was able to create the necessary editor based on the documentation and, because I was creating a dropdown, I also based it on this:

    https://github.com/umbraco/Umbraco-CMS/blob/5b9a98ad6ae9e63322c26f7b162204e34f7fcb54/src/Umbraco.Web.UI.Client/src/views/propertyeditors/dropdown/dropdown.html

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies