Home › Forums › General XMetaL Discussion › Display Default Image › Reply To: Display Default Image
Reply to: Display Default Image
March 27, 2012 at 2:11 pmThank you very much for the detailed reply. really appreciate.
I manaed to use SetRenderedContent method to replace the reference to a pdf document with a reference to a default jpg. The problem is with this method the XML file is updated. which I do not want. maybe i did something wrong but what i want is that xmetal only displays the default image and not update the xml itself.
I tried to update the CSS file using CSS :before or :after property. Some graphics are jpg and some are PDF. Only in case of PDF I want to display the default image. I tried to use attribute selector to identify all graphic elements that has file reference ending with 'pdf'. But looks like XMetal does not support it. e.g.
graphic[fileref$=”pdf”]
If i specify the whold file name then it works.
graphic[fileref$=”mydoc.pdf”]
but it is not a solution since there are many different pdf documents.
Did i do something wrong?
regards,
raju