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:
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.
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.
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:
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!
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):
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!
Thanks for the reply Dennis! I have repotrted it as an issue: http://issues.umbraco.org/issue/U4-8759
Happy to be able to help. Take care! :)
is working on a reply...