Hi Tolga,
The issue here is that the method renderConfluenceMacro is only working with old Wiki Markup macros or user macros. So this won't work with the HideElements macro. But you can achieve what you want with this workaround
You create a page with a HideElements macro like you want it on all pages. Then you go to "Tools > View storage format" and copy the related <ac:structured-macro...>...</ac:structured-macro>. You can remove a few things and create code like this in your user macro:
<ac:structured-macro ac:name="hideelements-macro"> <ac:parameter ac:name="title">true</ac:parameter> <ac:parameter ac:name="space-logo">true</ac:parameter> </ac:structured-macro>
Then you render your user macro in your decorator like this:
$helper.renderConfluenceMacro("{your-user-macro-name}")
I know this is not the cleanest way, but it's the only thing that I think works without further development. Let me know if you need further help on this!
Regards, Felix
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.