Copied to clipboard

Flag this post as spam?

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


  • Nadia 45 posts 122 karma points
    Apr 05, 2019 @ 00:18
    Nadia
    0

    RenderMacroText in Code

    Hey, I think I might be missing something obvious.

    But I need to send some content over a API, that has a Richtexteditor that Marco's are added to. Currently the API is just show the macro tag at the moment

    When we a display using on the Razor view, we use umbraco.library.RenderMacroContent

    But I can't seem to access RenderMacroContent out of the Razor?

    I could use UmbracoHelper.RenderMacro, but that would mean I have to parse the UMBRACO_MACRO tag to find the parameters, surely there is a easier way?

    Thanks

Please Sign in or register to post replies

Write your reply to:

Draft