Hello all,

i upgraded to the 4.0 version which now displays the image assist - inserted images nicely. However my client still wants no images in the printable page. I put "#img {display: none;}" in the main print.css file and it strips out the images (which is what i want) but the span tags that image assist module uses to create the image captions remain. I'd like to strip out the span tags as well. Anyone know how to do this?

I've tried:

.span .inline. caption{
display: none;
}

as well as variations of the above and they still display.

Please anyone with better knowledge of CSS than me please chime in!!!

Thanks,

Colin

Comments

jcnventura’s picture

Status: Active » Postponed (maintainer needs more info)

Hi,

Since no one seems to reply to this, I am going to give you a pointer on the only solution that you can do:

The print.tpl.php template file can contain PHP scripts (all those "print $print[]"). Take a look at PHP's preg_replace() function and replace the print $print['content'] line with a small sequence of steps that remove the contents of the spans.. After that, you can reverse your CSS img display hack which should no longer be necessary, as the img tags should be removed as part of the contents of the span.

João

jcnventura’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

2 weeks without further info.