Copied to clipboard

Flag this post as spam?

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


  • Carmen 4 posts 45 karma points
    Jun 25, 2015 @ 08:00
    Carmen
    0

    Converting old Razor script to Partial View macros

    I upgraded an Umbraco 6.2.4 project to 7.2.4 and I changed my old macros to partial view macros. These macros were used in RTEs on many different pages. Now, the macros are not rendered in the RTEs or the frontend.
    This is how the macro used to be in the RTE:

    <?UMBRACO_MACRO imagefolder="8683" croptype="" macroAlias="Gallerywithcrop" />
    

    And now they are just commented out.

    If I add them again they work fine and they look like this:

    <?UMBRACO_MACRO macroAlias="Gallerywithcrop" cropType="square" imageFolder="3375" />
    

    Is there a way to convert this without having to add them manually ?

  • Ste 14 posts 35 karma points
    Jun 25, 2015 @ 12:33
    Ste
    0

    Interesting! As you've observed, the syntax hasn't really changed, so I think it might just be a re-publishing problem?

    Try going to your Umbraco's republish dialog like this (but change 'yoursite.example') http://yoursite.example/umbraco/dialogs/republish.aspx?xml=true and click on OK.

    Maybe that will fix it, maybe it won't :)

    Ste

  • Carmen 4 posts 45 karma points
    Jun 25, 2015 @ 12:58
    Carmen
    0

    It didn't help. It's still the same.

    But thank you for writting :)

    Carmen

Please Sign in or register to post replies

Write your reply to:

Draft