|
Documentation has been updated and the plugin now supports 'print', 'printable' or 'printing'.
Is there a way to put this around the table of contents macro? I want the toc to show in Confluence but not in Word or PDF.
I tried {show-if:display=printable} {toc} {show-if} and the toc wouldn't show on Confluence. Then I tried {show-if:action=view} {toc} {show-if} and the output is: Thanks! If I assume correctly, the display= property is basically the media= for the HTML style tag.
Try display=screen The display does't relate to 'media' at all - it's hard coded, based on options available in Confluence.
There are two issues here: 1. I think you actually want {hide-if:display=printable}, not {show-if}. In the case of {toc}, the best way is probably to use the built-in printable test. Eg: {toc:printable=false}
Again, it will only work in 'printable' mode, not PDF or Word at present, but a new version of TOC is due out shortly which will rectify that. |
|||||||||||||||||||||||||||||||||||||||||||||||
It turns out the documentation was incorrect. It should be:
{show-if:display=printable}...{show-if}.
I have updated the documentation, and the next version will allow all three variations...