How to allow a body for a macro

Hi,

I have created a macro that works fine.
Now, I would like to modify its behavior: the macro should have a content (text) specified in the editor and the macro would just be used to push this text inside a specifc structure provided by a Velocity file.
I thought that I had just to return true for "hasBody()" method but an error occur when I redeploy my application and the macro is marked as "unknown".
Could you please indicate me what could be the reason of this problem ?
Thanks in advance.

1 answer

1 accepted

0 votes
Accepted answer

When you define the macro, what did you select for "Macro Body Processing" in the admin? That should be where you indicate that the macro has a body.

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

101 views 3 4
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