Re: static or dynamic "printer-friendly" webpages?

From: Date: Thu, 28 Jun 2001 12:43:41 +0000
Subject: Re: static or dynamic "printer-friendly" webpages?
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-9912@lists.php.net to get a copy of this message
At 27.06.2001 23:13, sgibbs@vt.globalhealth.org wrote:
Question for all you php experts out there: My organization's website is based on mysql/php backend - 95% of the webpages are generated dynamically using templates and database records. We have been asked to create "printer-friendly" versions of these pages. Now for your opinion/advice: should we (1)create another template called "print.php" for example and generate there print friendly pages dynamically or should we (2)create static html copies of each database record so that they are "print friendly"? By "print friendly" I mean I want a page that doesn't have the text cut off the right hand side of the page (nevermind, for now, that the original page shouldn't do this in the first place :) ) Thank you so much for your help!
Depends how large your ogranization's website is. I'd definatly go with the dynamic one, that means creating one template and nothing else (appart from updating the other templates to have a PrinterFriendly link on them). While a static page would require updating every time something changes, and requires an amount of work proportional to the number of pages, which could create a living hell somewhere down the line, especially if you have more than one webmaster. *dynamic-dynamic-dynamic* ;-) -- Andreas D Landmark / noXtension Real Time, adj.: Here and now, as opposed to fake time, which only occurs there and then.

« previous php.db (#9912) next »