Custom HTML to display image based on Category and /tiki-print.php
I'd like to display an image only for print view, and only for certain categories by adding some code to the Custom HTML section of Look & Feel.
I can control display per category using this:
Copy to clipboard
{if isset($objectCategoryIds) and in_array(89, $objectCategoryIds)} {literal} <img src="http://mysite/tiki-download_file.php?fileId=2"> {/literal} {/if}
And I can control display for only print view like this:
Copy to clipboard
{if $SCRIPT_NAME eq '/tiki-print.php'} <img src="http://mysite/tiki-download_file.php?fileId=2"> {/if}
How can I combine the two so that the image only displays for print view and certain category specified?