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

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
User avatar
nakkiel
Forum Members
Forum Members
Posts: 70
Joined: Wed Apr 02, 2008 7:15 am

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

Post 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?
Last edited by nakkiel on Fri Apr 11, 2008 10:12 am, edited 1 time in total.
KO
Power Poster
Power Poster
Posts: 562
Joined: Mon Nov 06, 2006 7:55 pm

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

Post 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}
User avatar
nakkiel
Forum Members
Forum Members
Posts: 70
Joined: Wed Apr 02, 2008 7:15 am

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

Post 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.
KO
Power Poster
Power Poster
Posts: 562
Joined: Mon Nov 06, 2006 7:55 pm

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

Post 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.
User avatar
nakkiel
Forum Members
Forum Members
Posts: 70
Joined: Wed Apr 02, 2008 7:15 am

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

Post 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.
Post Reply

Return to “Layout and Design (CSS & HTML)”