Shiny Grimer
Active member
- Pronoun
- she/her, they/them
I had this idea of making printer-friendly pages so that if someone wants to print my content, they get taken to a print-friendly version of that page and then print it. Now, I could make a separate page for every version of my website, but I figured there had to be an easier way to do it. So, I find this and see that there's an SSI version in the comments.
Now, this sounds dandy, but I have a style-switcher. I decide to work around that later and make a print.css. I do as the article says, with the
thing. However, no matter which style I use, <a href="http://www.theredblimp.com/test.shtml">the menus are gone</a>. I even put visibility:visible on the other stylesheets to 'counter' the print.css, but it still removes them. What can I do about this?
I was thinking about maybe using the ASP, but that would mean using a different extension .asp, and that would make my SSI not work. If there were some sort of Server-side includes for ASP or ASP.net, I'd switch all my pages to it, but I haven't been able to find such a thing. Is there?
Finally, if none of that works out, is there anything I can do with SSI so that I have a link on each page that basically says "theredblimp.com/print/thispagename.[extension]"? Basically, I want to fill the thing that says thispagename with each page's name so that I can put it in left.txt and have it be different for each page without having to put it in the actual content and edit it for each page.
Oh, and if anyone has any other solution (other than ditching the printer-friendly pages idea), I'm all ears.
EDIT: I don't want to do this:
because sometimes readers want to print out the nav or the ads or for some reason want the page as it appears on their computer. I want to give my users a choice: print it like this or as printer-friendly.
Code:
<!--#if expr="$QUERY_STRING = 'q=printme'" -->
<link rel="stylesheet" type="text/css" href="print.css" />
<!--#else -->
<link rel="stylesheet" type="text/css" href="default.css" />
<!--#endif -->
Now, this sounds dandy, but I have a style-switcher. I decide to work around that later and make a print.css. I do as the article says, with the
Code:
<a href="?q=printme">printer friendly version</a>
I was thinking about maybe using the ASP, but that would mean using a different extension .asp, and that would make my SSI not work. If there were some sort of Server-side includes for ASP or ASP.net, I'd switch all my pages to it, but I haven't been able to find such a thing. Is there?
Finally, if none of that works out, is there anything I can do with SSI so that I have a link on each page that basically says "theredblimp.com/print/thispagename.[extension]"? Basically, I want to fill the thing that says thispagename with each page's name so that I can put it in left.txt and have it be different for each page without having to put it in the actual content and edit it for each page.
Oh, and if anyone has any other solution (other than ditching the printer-friendly pages idea), I'm all ears.
EDIT: I don't want to do this:
Code:
<link rel="stylesheet" type="text/css" media="print" href="print.css">
Last edited: