Hi there,
I'd like to hide specific macros, like the attachment macro, when I export a page or a space to PDF. Is there an easy solution or do I have to use the "NoPrint" workaround (create a user macro and define custome CSS) described here:
http://confluence.atlassian.com/display/DOC/NoPrint+Example+of+a+User+Macro
Thank you,
Christian
All the noprint macro does is set up a container with the "noprint" class on it.
You should be able to use the same technique in your PDF stylesheet by applying display:none to whatever selector you want, eg:
.plugin_attachments_container { display: none; }
That way you don't need to set up the noprint macro. It does mean you will not see the attachments macro in any PDF export, that is you don't have the fine-grained control offered by using the macro. So use the technique with caution :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any idea how to find selectors? I've posted this question as https://answers.atlassian.com/questions/96581/how-do-i-find-the-selector-for-a-plugin.
doug
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.