Forums

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

Add Atlassian built in Macros like "recent space activity" to Velocity VM or via java code to page?

Ismael Delgado
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 28, 2020

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=...

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events