Print button to envoke Print dialog box?

Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Fri Mar 27, 2015 1:18 am
Reply with quote
Report this post
Hi,
when I click Print button on an K2 article it gives only the raw text in a popup window but no print button or file menu. Is it possible to get the Print dialog box pop on click on the print button?

Thanks,
Gorast
User avatar
Platinum Boarder

teitbite
Sat Mar 28, 2015 7:19 pm
Reply with quote
Report this post
Hi

Please tell me the exact url to the page where I will be able to test this.
User avatar
Moderator

GK User
Mon Mar 30, 2015 8:20 am
Reply with quote
Report this post
Hi,

http://www.gorast.com/eusnov/mk/krediti ... it-instant

right above the image on the right.

Thanks,
Gorast
User avatar
Platinum Boarder

teitbite
Mon Mar 30, 2015 8:16 pm
Reply with quote
Report this post
Hi

Please add this to file /eusnov/components/com_k2/css/k2.print.css

Code: Select all
.itemPrintThisPage {
    display: block;
    position: fixed;
    right: 10px;
    top: 10px;
}
User avatar
Moderator

GK User
Mon Mar 30, 2015 11:54 pm
Reply with quote
Report this post
Hi,
not sure what this should do but I don't see any changes.

http://www.gorast.com/eusnov/mk/stedenj ... -denarplus

Also, how can I customize the print page? I see the NEWS2 header and large image in the print window.

Thanks,
Gorast
User avatar
Platinum Boarder

teitbite
Thu Apr 02, 2015 11:58 am
Reply with quote
Report this post
Hi

You can customise the look of it with css. Image just need to be replaced it's located here: http://www.gorast.com/eusnov/templates/ ... t_logo.png

Please send me an access to ftp. I can see the code You asked You to add. But it's just ignored. Probably because of dfferent codding or something like that. Works when I add it via firebug.
User avatar
Moderator

teitbite
Fri Apr 03, 2015 6:31 pm
Reply with quote
Report this post
Hi

It must have been an editor fault. I copied the same code I adviced earlier and it worked. So now You just need to replace the logo image in mentioned location.
User avatar
Moderator

GK User
Sat Apr 04, 2015 10:27 am
Reply with quote
Report this post
Hi teitbite,
I'm sorry but I dont see any changes on the print popup page.
The problem was that there is no button there so "beginners" can just click to invoke the Print dialog (when they forgot that ctrl+p can be used).

http://imgur.com/5RUwil8

What did the code you inserted do?

Plus, how to remove K2 article image from print preview?

Thanks,
Gorast
User avatar
Platinum Boarder

teitbite
Tue Apr 07, 2015 2:23 pm
Reply with quote
Report this post
Hi

My code forced a print button in popup appear in right top corner. You probably need to clear browser cache to see it. I can see it already.
User avatar
Moderator


cron