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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

769 views 23 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