Page 1 of 1

phpwcms.de website questions / custom layout print problems

Posted: Thu 26. Aug 2004, 18:16
by submike
Hi Oliver,

I was wondering if you could provide me with some information on how you set up the phpwcms site at http://www.phpwcms.de/index.php.

How did you set up your page layout?
How did you set up your template?
Specifially, how did you define a colspan of 5 for the <td> generated by the cms (line 4 in code below)?

Code: Select all

1 <body bgcolor="#e8ebee" text="#000000" link="#FF9900" vlink="#FF9900" alink="#FF9900" topmargin="0" leftmargin="0" marginwidth="0" marginheight="0">
2 <table border="0" cellspacing="0" cellpadding="0" width="775">
3   <tr>
4     <td colspan="5" height="53">
5        <table width="775" height="53" border="0" cellpadding="0" cellspacing="0">
I used the custom layout option for rendering to incorporate a shadow effect on the left and right side of the layout. Site works great, but when using the print function, it now displays the entire site in the print window, as all of the code is located in the main area of the template.

I can send you a link to the site I'm working on. I can't display it to the public right now, as it's still in development.

Any help would be greatly appreciated,
Mike

Posted: Wed 1. Sep 2004, 01:42
by danielus
Hello Mike,
i use also custom layout. Try to write {CONTENT} also into the Footer area. And replace this Sting in conten.func.inc


//if print layout should be showed
$content["all"] = $block["footertext"]; //$content["print_cont"]
$block["css"] = "print_layout.css"; //sets css to standard printing layout


Now when you use the print command it will be read from the footer area. I think its not the best trick but it works on my system.

Regards
Danny

Posted: Wed 1. Sep 2004, 04:35
by Ben
danielus,

That seems like an elegant solution to the problem. I have not used a "custom" layout, yet, but when I do your solution will come in handy.

Posted: Thu 23. Sep 2004, 02:53
by submike
I did a little digging on the site and ran across some code Trip put together. Check it out at:
http://www.phpwcms.de/forum/viewtopic.p ... ight=print