Confluence 3.x user macro does not work in Confluence 4.x template

Hi,

I have a template (Test_Template). Its only content is the following line:

{myListMacro}

My user macro (myListMacro) contains the following code:

{list-data:myListMacro}
{list-option:value=myvalue}My Value{list-option}
{list-data}

When creating a new page using this template with this macro I get a list with one option in Confluence 3.x. In Confluence 4.x the content (unrendered) of the myListMacro appears on the new page. What do I have to do to get the same list again?

1 answer

1 accepted

I wrote the list-data macro on a plain page and used the source editor to copy the Code. Well Atlassian, sorry to say that, but if this should be the only way/workaround to do that, you should definetely improve your concept of templates/macros!

<ac:macro ac:name="list-data">
<ac:parameter ac:name="name">myListMacro</ac:parameter>
<ac:parameter ac:name="atlassian-macro-output-type">BLOCK</ac:parameter>
<ac:parameter ac:name="required">true</ac:parameter>
<ac:rich-text-body>
<ac:macro ac:name="list-option">
<ac:parameter ac:name="value">myvalue</ac:parameter>
<ac:rich-text-body>
<p>My Value</p>
</ac:rich-text-body>
</ac:macro>
</ac:rich-text-body>
</ac:macro>

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,908 views 27 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you