Copied to clipboard

Flag this post as spam?

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


  • Rasmus 6 posts 47 karma points
    Mar 31, 2015 @ 13:20
    Rasmus
    0

    Macros not rendering inside rich text editor

    Hi Antoine,

    Thanks for a great package.

    I need the ability to render macros inside RTE, currently the macro alias is just printed on the page, is it possible to render macros in a RTE?

    Or can i dig into the source myself and fix it?

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 31, 2015 @ 13:40
    Jan Skovgaard
    100

    Hi Rasmus

    You should be able to enable macro rendering if you go to the macro in "Developer -> macros" and choose the "Render in richtext option"...Something like that.

    Does this make sense?

    /Jan

  • Antoine 176 posts 1494 karma points
    Mar 31, 2015 @ 16:19
    Antoine
    1

    Hi Rasmus

    Jan is right, you can enable macro rendering within the macros properties.

    Anyway, if you are using the grid, it's not recomended to add macros into RTE, it's better to add them within the grid areas instead.

    Antoine 

  • Rasmus 6 posts 47 karma points
    May 11, 2015 @ 10:17
    Rasmus
    0

    Hi again,

    I have been working on some other stuff, so I was very happy to see some answers once I got back to this.

    Antoine I agree that it is better to have them in the grid area, however I have a case where I need to be able to insert views in LeBlender, RTE areas and in the grid and in this case it was just the easiest solution to use macros.

    However all I see in the rendered view is this text:

    Macro alias: Gallery

    And the macro does work in other editors.

    Any clue?

    Edit: Somehow I managed to get it working, it was an application specific bug. Thank you both!

  • Antoine 176 posts 1494 karma points
    May 11, 2015 @ 19:21
    Antoine
    0

    Hi Rasmus, 

    There is already an known issue about that: http://issues.umbraco.org/issue/U4-6206.

    The Archetype's guys seems to have found some way to fixed that that https://github.com/imulus/Archetype/issues/103, and it can be a good starting point.

Please Sign in or register to post replies

Write your reply to:

Draft