phpwcms.de website questions / custom layout print problems

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
submike
Posts: 50
Joined: Wed 25. Aug 2004, 17:36
Location: Chicago
Contact:

phpwcms.de website questions / custom layout print problems

Post 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
danielus
Posts: 14
Joined: Thu 22. Jul 2004, 20:56

Post 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
Ben
Posts: 558
Joined: Wed 14. Jan 2004, 08:05
Location: Atlanta
Contact:

Post 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.
submike
Posts: 50
Joined: Wed 25. Aug 2004, 17:36
Location: Chicago
Contact:

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