I want to hide the output of a macro/plugin when I export to PDF. I've seen https://answers.atlassian.com/questions/31502/hide-specific-macros-in-pdf-export, which is fine as far as it goes. However, it only tells me how to turn off the output of the attachments macro, not how to turn off the output of any other macro. So how does one get the value of a plugin/macro selector? For attachments is it ".plugin_attachments_container", but how do you get that information?
It's too bad plugin authors don't think through their design. Hiding their plugin in the output file seems to me to be an obvious option.
I was trying to hide the output of the Page Approval macro. Following your suggestion I:
And the output no longer has the Page Approval information. Note that I also had to make sure the PageApproval macro was in it's own paragraph, otherwise the rendering was off
There's no easy answer for this - it's going to be different for each macro. You'll need to examine the HTML output of a particular macro (you can do this using a developer tool such as FireBug) and identify the top-level element for that macro.
If you look at the output of an attachments macro, you'll see that the outer-most HTML element for the macro is a <div> with a class of "plugin_attachments_container".
Which macros are you looking to hide, specifically? I can give you a hand identifying the styles you need.
Wherever you are in your team’s journey , our goal is to support your big ambitions. We’re a cloud-first company with the mission of unleashing the potential of every team, and to address the range ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events