Page 1 of 1

[Solved] How to change the print image and remove the link border surrounding it

Posted: Wed Apr 09, 2008 9:57 am
by nakkiel
How can I change the print image and the link border surrounding it?
I have tried to do it with this:

Code: Select all

{print showbutton="true" src_img="images/print_page.jpg" script="false"}
But it does not work. Also I tried to replace the print button gif itself, located in 'images/cms/printbutton.gif' and still nothing. But when I replace the image in 'modules/Printing/printbutton.gif' it does work... And how can I then remove the link border surrounding the print image?

Re: How to change the print image and remove the link border surrounding it

Posted: Wed Apr 09, 2008 1:52 pm
by KO
Link border can most likely be removed with...

a img {border:0px solid; text-decoration:none}

This changes all the link images so then you want to put some other (class or id) selector in front in case it is a problem.

.yourclass a img {border:0px solid; text-decoration:none}

Re: How to change the print image and remove the link border surrounding it

Posted: Thu Apr 10, 2008 5:27 am
by nakkiel
That removed the border surrounding the print image, thanks mate... Now the print image looks good, since I replaced the original image, but I would still like to know why that cms made simple {print...} thingy is not working.

Re: How to change the print image and remove the link border surrounding it

Posted: Thu Apr 10, 2008 6:37 am
by KO
To tell the truth I always removed the print tag and created separate CSS print stylesheet so that printing would look nice. These print tags are more legacy from times layouts were made with tables.

I also know that on one of these latest versions {print} was changed to give pdf support so you might want to do some search on this matter on this forum. Something might have changed then. You might also want to try {oldprint src_img="pathtoyourimage"} as someone says this is the previous print function but still used for current printing module

I quickly tried {print text="Printable Page"} in one of my test CMS installations and I had no problems getting it to work.

You could try also uninstall and then reinstall that module.

If someone else knows better then, please comment.

Re: How to change the print image and remove the link border surrounding it

Posted: Thu Apr 10, 2008 7:10 am
by nakkiel
Using {oldprint...} does actually work, that gets the picture I was looking for (tried it with another picture too). But when I am using script="false" in my {oldprint...} tag, that uses the script, and when dropping the script="false" completely, it doesn't. ;D

But there was another problem with {oldprint...}, too. It uses some other template for printing than {print...} does.

Oh well.