roeb
roeb

Reputation: 487

Problems with user macros after updating confluence from 3.5 to 5.4.4

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:

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:

formating inside body not working

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

Upvotes: 1

Views: 246

Answers (1)

dvdsmpsn
dvdsmpsn

Reputation: 2869

The problem here is that the body content displayed is old fashioned wiki-markup.

You can't use wiki markup in Confluence 5.x.

Ensure that the macro body processing is set to Rendered:

macro body processing

After that, you should be able to nest macros within the macro body like so:

editing in the user macro

It will be rendered as so:

result

Update:

To migrate macros from Confluence 3.x or below, consider this post: On converting wiki markup based user macros for use with Confluence 4

Upvotes: 3

Related Questions