[thelist] Printer Friendly Version

Ron Jourard ronjourard at home.com
Wed Dec 27 08:47:58 CST 2000


Martin,

What if the pages you want to convert to printer version are part of a
single long article which is broken into several or more web pages?
Can you issue a command that will join all of the pages of the same
article into a single printer-friendly document, sans fluff?


Thanks, Ron Jourard
Toronto, Canada
www.defencelaw.com

you wrote:

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








More information about the thelist mailing list