[thelist] Printer Friendly Version

martin burns martin at members.evolt.org
Wed Dec 27 05:28:35 CST 2000


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





More information about the thelist mailing list