Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Unable to render Confluence macros nested inside a dynamic macro, any help?

Melek Jebnoun_Vectors_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 13, 2019

Hello

As a marketplace editor, we are currently developing the Cloud version of our Server Apps but we are facing a huge blocker.
Our Apps are based on dynamic Macros that render their body. They just organize content into tabs and render what has been added into the body as it's. Still when we include Confluence macros (info, page properties) or tables, it's not rendered properly or it doesn't work at all.
The styles and JS are not loaded in the iFrame.
This is a real struggle especially that we included the css and js specified in the documentation but we can't make it work and it block the release on the marketplace and make our customer unhappy.
Any one has faced this issue previously?

Many thanks

2 answers

0 votes
Melek Jebnoun_Vectors_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 8, 2019

Many thanks all.

Now this is fixed but Atlassian deprecated support for nested macros so our model don't work any more :)

We need to rebuild the app from scratch to fulfill the new editor structure.

Many thanks anyway

0 votes
Yuri Kleshchenok March 13, 2019

Hello Melek,

Here is a manual(u can get resources after rendering storage to styled_view) what we are using for one of our app.

Melek Jebnoun_Vectors_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 15, 2019

Hello Yuri

Many thanks for your reply.

Just to make sure we are on the good way. When we render the storage to styled_view for the page we get the head tag with all the resources.

Are those resources the one we need to use and load based on the link you shared with us? 

Many thanks

Yuri Kleshchenok March 15, 2019

Correct.

Example request(u can convert to "view" too):

"/rest/api/contentbody/convert/view?expand=webresource.uris.js,webresource.uris.css,webresource.superbatch.uris.js,webresource.superbatch.uris.css";

there will be resource urls(not a head tag) in response.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events