How to allow a body for a macro


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

This widget could not be displayed.

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

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

496 views 7 6
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