Copied to clipboard

Flag this post as spam?

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


  • Dirk De Grave 4537 posts 6006 karma points MVP 3x admin c-trib
    Jan 10, 2013 @ 15:59
    Dirk De Grave
    0

    @Html.Action("Action","Controller") equivalent in Razor script

    Hi,

    Anybody knows if it's possible to execute an action on a surface controller from a Razor script (which will be referenced by a macro and inserted in a RTE)?

    From a template, I'd use this

    @Html.Action("Action", "Controller") 

    but how to do this from a Razor view/script?

    Or am I on the wrong track here?

     

    Cheers,

    /Dirk

  • Jeroen Breuer 4861 posts 12138 karma points MVP 3x admin c-trib
    Jan 10, 2013 @ 16:35
    Jeroen Breuer
    0

    Sorry I don't know how this is done in a Razor script, but if you can wait until v6 is out you can do this: https://groups.google.com/d/msg/umbraco-dev/w4-cnlWDXTk/udLLflab10IJ

    So in v6 you can use partial views as macro's which can be inserted into the RTE.

    Jeroen

  • 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