I am trying to get some Atlassian created and supplied default macros like the recent space activity macro and the space contributors macro to appear on a page via code and not manually inserted via the edit menu.
I have a plug in and my own xhtml Macro that works fine. I have a velocity vm template that I use to display data from that macro or from java functions. That all works what I can't figure out is how to get the built in default macros to appear on the page.
For example if my velocity page was the following below. Can macros be called directly from the velocity.vm file in code or is there another way ? Thank You,
<div>
<h1>My Page<h1>
#foreach ($data from $myDataFromgetRenderedTemplateContextMap)
<p>Hello $data <p>
<div>
<div>
How Do i insert a default Macro like "recently-updated" macro
<p><ac:structured-macro ac:name="recently-updated" ac:schema-version="1" ac:macro-id=....
<div>
Or the "contributors" macro
<p><ac:structured-macro ac:name="contributors" ac:schema-version="1" ac:macro-id=...