Copied to clipboard

Flag this post as spam?

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


  • Tobias Nylin 24 posts 117 karma points
    Jul 21, 2016 @ 08:10
    Tobias Nylin
    0

    Macro preview in RTE not working when picked content itself has a macro

    Hello! On our site we have a macro which has a Macro Parameter of the type Content Picker. The macro is used for showing heading and the leading part of the main body (which is a RTE).

    Here is the problem, if the page which is picked from the macro itself has a macro in its main body the preview for the macro doesn't work:

    enter image description here

    Both macros in the image are of the same type, but the top one has a page picked which includes a macro itself in its RTE.

    Any ideas, why this happens? Thanks in advance!

  • Dennis Adolfi 1082 posts 6449 karma points MVP 6x c-trib
    Jul 21, 2016 @ 09:09
    Dennis Adolfi
    0

    Hi Tobias.

    I re-create this scenario by creating a macro that takes in a content-picker parameter and displays its bodyText, then on Page 1 i pick Page 2 in the macro and Page 2 has selected Page 3 in its macro, and i get the same output as you, so i can only confirm this.

    Page 1: - Selects the macro and points to Page 2 as parameter.

    Page 2: - Selects the macro and points to Page 3 as parameter.

    Page 3: - Just some plain text..

    If you check the logs you will probobly find an error like (or at least i did):

    Cannot render a macro when there is no current PublishedContentRequest.
    

    I dont know if this is a bug or just a edge case scenario of multiple nested macros but maybe report it on http://issues.umbraco.org?

    Or maybe disable the preview or use a Macro Container.

    Best of luck!

  • Tobias Nylin 24 posts 117 karma points
    Jul 21, 2016 @ 10:54
    Tobias Nylin
    1

    Thanks for the reply Dennis! I have repotrted it as an issue: http://issues.umbraco.org/issue/U4-8759

  • Dennis Adolfi 1082 posts 6449 karma points MVP 6x c-trib
    Jul 21, 2016 @ 11:01
    Dennis Adolfi
    0

    Happy to be able to help. Take care! :)

Please Sign in or register to post replies

Write your reply to:

Draft