Problems with user macros after update from 3.5 to 5.4.4

Hello,

i've upgraded a confluence-system from 3.5 to 5.4.4.

There is a user-macro called 'faq' which was used very often
it just looks like this:

{panel:title=$param0}
$body
{panel}

and formats input to something like this:

faq user macro format example

after the update editing of the headline (param0) is not possible - error message that there is no metadata ... so i updated the macro to use this code:

## Macro title: faq
## Macro has a body: Y
## Body processing: Selected body processing option
## Output: Selected output option
##
## Developed by: me
## Date created: 05/06/2014
## Installed by: me
## @param 0:title=Name|type=string|required=true|desc=Headline der FAQ
<div class="panel" style="border-width: 1px;"><div class="panelHeader" style="border-bottom-width: 1px;"><b>$param0</b></div>
<div class="panelContent">
$body
</div>

this works, but any other macro inside the body wont work anymore:

no formating inside the body

can someone please help me to get the body content in the right format again?

3 answers

Hello Gerd, we do have some changes among Confluence versions that require macros to be adapted, it is described after this link. We also used to have issues considering User Macros headings, which was fixed (bug for reference). Not sure if that is the same scenario, posting this with hopes to help you get further.

0 vote

Hi Gerd,

In confluence 4.0 we introduced a new format called XHTML, which is different from the wikimarkup format.

I could find this webpage which might help as an example for you to rewrite the macro again :)

## @noparams <ac:macro ac:name="info"> <ac:parameter ac:name="title">Table of content</ac:parameter> <ac:rich-text-body> <ac:macro ac:name="toc" /> </ac:rich-text-body> </ac:macro>

Cheers,

Rodrigo

Hi Gerd,

Please try configuring the User Macro with 'Macro Body Processing' type Rendered.

Regards,
Sam

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

866 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