Hello everybody,
I'm looking for a way to set the value of a user macro's $body from inside the macro.
There is the following background for this. When creating a new Confluence page using a template, the user macro gets an initial value in the $body. This value is used as long as no other value is selected in the macro. (A value would be selected by editing the user macro and selecting a value there using the dropdown).
Here is the crucial question - if I choose a value other than the initial value in the macro, the value selected in the macro should be automatically set in the macro's $body to avoid irritation.
Within the macro, the value of the variable $body can be reset with
#set ($body = $paramXYZ)
but the value is then not adopted when saving.
Is there a solution for this?