Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Stefan Eike
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 5, 2012

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
Answer accepted
Stefan Eike
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 5, 2012

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
TAGS
AUG Leaders

Atlassian Community Events