Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-03-10 09:54:12

simsim
Member
Registered: 2006-05-06
Posts: 70

The print challenge in TXP!

Hello,

How would I go about creating a “print section” for a TXP-powered site? By this, I mean a page that displays printer-friendly articles with appropriate layout and structure for printing. I could depend on just the print-specific CSS stylesheet but users are getting confused about this and usually don’t use browsers’ built-in File -> Print option. I’ve already got few emails asking about why the site doesn’t have a “Print This Article” button!

My approach would be to create a section called, say, “print”, and attach a print-specific CSS style to it, and block that section altogether from being indexed via robots.txt to prevent content duplication. The problem with this of course, is that TXP doesn’t allow multiple section assigning.

Any thoughts how to tackle this?

TIA.

Offline

#2 2008-03-10 10:35:04

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: The print challenge in TXP!

simsim wrote:

Hello,

How would I go about creating a “print section” for a TXP-powered site? By this, I mean a page that displays printer-friendly articles with appropriate layout and structure for printing. I could depend on just the print-specific CSS stylesheet but users are getting confused about this and usually don’t use browsers’ built-in File -> Print option. I’ve already got few emails asking about why the site doesn’t have a “Print This Article” button!

My approach would be to create a section called, say, “print”, and attach a print-specific CSS style to it, and block that section altogether from being indexed via robots.txt to prevent content duplication. The problem with this of course, is that TXP doesn’t allow multiple section assigning.

Any thoughts how to tackle this?

Instead of sections why don’t you use an alternative style sheet and the method from ALA ?

Last edited by colak (2008-03-10 10:35:25)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2008-03-10 18:58:59

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,726
Website

Re: The print challenge in TXP!

Take a look at this thread. Make a separate print style sheet as colak suggests and if you want a link to a print version, you can use the tip in the thread which simply loads the same page with the alternative print style sheet into the browser – best of both worlds.


TXP Builders – finely-crafted code, design and txp

Offline

#4 2008-03-11 06:29:52

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: The print challenge in TXP!

jakob, I’ve missed that thread. Thanks for resurfacing it.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB