Copied to clipboard

Flag this post as spam?

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


  • Michal Koblasa 45 posts 139 karma points
    Jul 07, 2015 @ 08:57
    Michal Koblasa
    0

    Macro inside NS editor - 404 error

    Hello,

    i need to feed email content with macro. But when i add macro to editor i get following 404 error:

    Request error: The URL returned a 404 (not found): 
    /umbraco/backoffice/UmbracoApi/Macro/GetMacroResultAsHtmlForEditor
    

    All my macros are working in content sections, but not in NS editor. Any ideas, how to solve it?

    Thank you M.

  • Markus Johansson 1945 posts 5899 karma points MVP 2x c-trib
    Jul 07, 2015 @ 11:05
    Markus Johansson
    1

    Hi!

    Thank you for using the package!

    You can't use a macro inside a the content editor i Newsletter Studio as a macro needs to run in a "node aware" environment.

    If you would like to include dynamic content you have two options:

    1. Write a custom render task that replaces a placeholder in the newsletter with your dynamic content, see this link: http://support.newsletterstudio.org/customer/portal/articles/1052872-control-content-with-render-tasks

    2. Use the "Insert URL-content"-feature to fetch rendered HTML-content from ie. a page with the macro, see this: http://support.newsletterstudio.org/customer/portal/articles/1053016-creating-newsletters

    Another option might be to send the letter from the content section: http://support.newsletterstudio.org/customer/portal/articles/1053067-sending-from-the-content-section

    Cheers!

    // Markus

  • Michal Koblasa 45 posts 139 karma points
    Jul 08, 2015 @ 06:36
    Michal Koblasa
    0

    Hello,

    thank you for making it clear. I already read about this options and i was wandering why macros are not mentioned. Maybe it would be nice to mention in documentation, that macros can be used only when you are sending from content section and its the reason for the other solutions like custom render task or insert url content.

    Thank you for response.

  • Markus Johansson 1945 posts 5899 karma points MVP 2x c-trib
    Jul 14, 2015 @ 16:08
    Markus Johansson
    0

    Sound like a good plan! I'll make sure to add that to the docs.

    Cheers!

  • 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