The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Using 2 confluence html macro to build page

Henry
July 7, 2020

Hi,

 

In order to build my page, I would like to use 2 html macros in the same page.

The first macro will include most of my page body (inlcuding Style and Script).

The second macro will include one javascript function i(lets call it LoadData() )n a Script tag

The function defined in the second macro is called by the script in the first macro.

When I run it, I can see an error in the console saying LoadData is unknown.

how can I make it work ?

 

You may ask why I want to do this. First of all, the LoadData script is quite large so I don't want to risk any change in it.

Also, ultimately, I would like to move it to another page and use the "Include page" macro. I guess I need to make it work first with 2 separate macro in the same page before I move the second macro to another page.

 

thanks

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events