Copied to clipboard

Flag this post as spam?

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


  • Atoosa Khoda 96 posts 148 karma points
    Feb 11, 2015 @ 01:52
    Atoosa Khoda
    0

    Umbraco 7 - Razor Macros

    I have just upgraded to 7.2.1. I would like to be able to continue to use the razor macros scripts that i have had from earlier versions (at least for now until i find time to convert them all to partial views). Is this possible?

    And if so, i would like to be able to edit the scripts through the UI (developer section). But under developer section where the macro scripts used to be, currently i can only see the Partial View Macro Files.

    On the file system i have kept the macroScripts folder intact.

    Please let me know if you know it.

    Thanks.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Feb 11, 2015 @ 05:30
    Jan Skovgaard
    1

    Hi Atoosa

    What version did you upgrade from? I don't think that the macroScripts will work on v7 since it's the first implementation of Razor in Umbraco and is a legacy, which is no longer supported so you should probably start rewriting the to partial view macros instead.

    /Jan

  • Atoosa Khoda 96 posts 148 karma points
    Feb 11, 2015 @ 06:23
    Atoosa Khoda
    0

    I started from 4.7.1 and worked my way up to 7. At some point i think version 6, i upgraded all razor scripts, not to partial, just from razor 2 to 4 or whatever the version was. so they were working again. this was before upgraded 7.

  • denisedelbando 141 posts 339 karma points
    Aug 26, 2015 @ 15:32
    denisedelbando
    0

    what happened to this? im in the same situation

Please Sign in or register to post replies

Write your reply to:

Draft