Copied to clipboard

Flag this post as spam?

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


  • Paul 7 posts 107 karma points
    27 days ago
    Paul
    0

    Is there a way for a macro inside a rich text editor to display differently in the editor to how it looks on the website

    Is there a way for a macro inside a rich text editor to display differently in the editor to how it looks on the website ?

    I was thinking of having some code in the macro template that checks if it is being displayed in the editor or on the website. But not sure how to do it or if it can be done.

    Hope that makes sense

    Thanks

  • Paul 7 posts 107 karma points
    27 days ago
    Paul
    100

    I think I have found it....

    if (UmbracoContext is not null && UmbracoContext.IsFrontEndUmbracoRequest()) { Frontend }

  • 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