Editing [PRINT] layout

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
d-lexy
Posts: 76
Joined: Fri 22. Oct 2004, 22:59
Location: Toronto, Canada / Tallinn, Estonia

Editing [PRINT] layout

Post by d-lexy »

Hello,

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

Thanks in advance!
jscholtysik

Post by jscholtysik »

Hi d-lexy,


try this print solution:


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

It's very usable... ;-)


Joachim
d-lexy
Posts: 76
Joined: Fri 22. Oct 2004, 22:59
Location: Toronto, Canada / Tallinn, Estonia

Post 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
User avatar
Kosse
Posts: 1066
Joined: Thu 9. Sep 2004, 12:08
Location: Brussels, Belgium
Contact:

Re: Editing [PRINT] layout

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