[thelist] Printer Friendly Version
Joshua OIson
joshua at alphashop.net
Wed Dec 27 09:43:26 CST 2000
This problem is (nearly) solved nicely by developing in a FuseBox'esque
mindset. I realize that there is no FuseBox methodology standardized for
ASP, the concepts are still the same. I do not develop using the standard
fusebox method, but rather use a derivative thereof--like everybody else I
know. It facilitates Printer Friendly pages by completely separating the
page structure from the content. So, to do a conditional to remove the
"fluff" there is exactly one place I must code the conditional. It's sort
of nice in that regard. There is a bit of overhead to produce a single
page, but the flexibility does pay off, IMHO.
-joshua
----- Original Message -----
From: "martin burns" <martin at members.evolt.org>
To: <thelist at lists.evolt.org>; <thelist at lists.evolt.org>
Sent: Wednesday, December 27, 2000 1:59 AM
Subject: Re: [thelist] Printer Friendly Version
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> At 04:27 27/12/00, Anthony Baratta wrote:
> >>Can anyone give some advice as to creating a page to
> >>be printer friendly. The info displayed on the
> >>website looks good but the printed version wraps to
> >>consecutive pages. Is there a code telling it to
> >>print a certain way including removing the
> >>navigational codes?
> >
> >If you are offering your content via a database or some other dynamic
> >content generation process, just provide a link to the same content sans
> >the "fluff". Another way would be to create two pages, one full design
the
> >other, minimal design.
>
> But that means maintaining 2 pages, rather than one. As sure
> as eggs is eggs, they will get out of sync at some point, you
> will forget which is the master version, and you'll have divergent
> editions.
>
> Better to have dynamically generated 'fluff' which can be swapped out
> with an appropriate query string. Many people will be adding 'fluff' with
> SSIs anyway, so conditionalising them will be a useful way to go.
>
> This is the way I'm going with my site:
>
> <!--#if expr="$QUERY_STRING = 'printable'" -->
>
> <link rel="stylesheet" href="/resources/print.css" />
> </head>
> <body>
> <table border="0" width="90%" class="cookie">
> <tr class="cookie" >
> <td>
> You are here: <a href="/"
class="crumb">easyweb.co.uk</a>
>
>
>
> <!--#else -->
>
> <!--#exec cmd="/www/webspace1/web3060/web3060/cgi-bin/css_swap.cgi"-->
> <!--#include virtual="/resources/top2.fhtml" -->
> <img src="/cgi-bin/font_cookie.cgi?<!--#ECHO VAR="QUERY_STRING"-->"
> height="1" width="1" alt="" hspace="2"/>
>
> <!--#endif -->
>
> Cheers
> Martin
>
> ________________
> Martin Burns, Content Management Consultant
> tel: +44 (0)774 063 9985
> http://www.evolt.org/user/MartinB/32/evolt.org
> http://www.easyweb.co.uk/
> -----BEGIN PGP SIGNATURE-----
> Version: PGPfreeware 6.5.3 for non-commercial use <http://www.pgp.com>
> Comment: PGP Key ID: 0xA835CCCB
>
> iQA+AwUBOkm9i3HoHnCoNczLEQIACQCYlqbI9nYEY6VDazxfVbcb5kkYOwCfYLVT
> hwYD555VzSW6QtYkUqwuXAM=
> =bSod
> -----END PGP SIGNATURE-----
>
>
> ---------------------------------------
> For unsubscribe and other options, including
> the Tip Harvester and archive of TheList go to:
> http://lists.evolt.org Workers of the Web, evolt !
More information about the thelist
mailing list