Page 1 of 1

Editing [PRINT] layout

Posted: Tue 22. Nov 2005, 14:54
by d-lexy
Hello,

just a quick question.
Where can I change the layout of the page generated by [PRINT] tag?

Thanks in advance!

Posted: Tue 22. Nov 2005, 15:25
by jscholtysik
Hi d-lexy,


try this print solution:


http://www.phpwcms.de/forum/viewtopic.p ... =print+php

It's very usable... ;-)


Joachim

Posted: Wed 23. Nov 2005, 03:38
by d-lexy
Hey jscholtysik,

I actually used this solution before. But now I implemented the ionrock frontend login script and unfortunately I can't use this print solution with secured pages.

cheers

Re: Editing [PRINT] layout

Posted: Wed 23. Nov 2005, 12:44
by Kosse
d-lexy wrote:Hello,

just a quick question.
Where can I change the layout of the page generated by [PRINT] tag?

Thanks in advance!
Hi d-lexy, here:

in include/inc_front/content.func.inc.php
around line 360/370 (depends if u messed with func.inc before ;)

Here is the example I used for http://www.srdu.be
Original:
http://www.piezoworks.be/srdu/index.php?fr_help
Print page:
http://www.piezoworks.be/srdu/index.php?id=5,13,1,1,1,0

Code: Select all

//if print layout should be showed
$prepend = "<div id='txt'><p align='right'>Marie-José Laloy
<br/>_____________________________________</p></div>"."\n";
$content["pagetitle"] = "Pour retrouver ce texte, rendez-vous sur www.mjlaloy.be";
$content["all"]   = $prepend.$block["maintext"]."<p>__________________________________________________________________<br /><br />Venelle des Marronniers 19, 1301 Wavre 010 24 48 80 | Sénat 02 501 77 33<br />Site: http://www.mjlaloy.be  -  Email: laloy@senators.senate.be</p>";
//$content["main"]
$block["css"]   = "print_layout.css"; //sets css to standard printing layout
}
Change the print_layout.css as well to have full results (like visibility:hidden for images and so on...)

Cheers