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

1 vote
Accepted answer

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
Community showcase
Posted Monday in Confluence

Organizing your space just got easier - Page Tree Drag & Drop is here

Hi Community! I’m Elaine, Confluence Product Manager. You may have read my earlier post about page tree in space navigation sidebar. I'm excited to share another improvement that helps you organize ...

58 views 3 2
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