Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » [archived] pap_print_article

#1 2006-02-26 16:50:51

tranquillo
Archived Plugin Author
Registered: 2005-03-07
Posts: 127
Website

[archived] pap_print_article

Notice: This thread is archived, this plugin is no longer available.

**********************************************************

pap_printer_friendly can be used on an individual article page to display a link to the printer friendly version of the article using the corresponding stylesheet. There is no target attribute set in the printer friendly article link.

Tags:

<p><code><txp:pap_printer_friendly /></code></p>

Put this tag in the head of your page template, i.e.:

<p><code><head>
<txp:if_article_list>
<link rel=“stylesheet” xhref=”<txp:css />” type=“text/css” media=“screen, print” />
</txp:if_article_list>
<txp:if_individual_article>
<txp:pap_printer_friendly stylesheet=“default=all” printsheet=“print=screen+,+print&default=handheld” />
</txp:if_individual_article>
</head></code></p>

Attributes:

stylesheet – Stylesheets for the normal version, default is “default=all”.
printsheet – Stylesheets for the print version, default is “print=all”.

In both attributes you have to indicate the stylesheets as follows:

attribute=”name_of_first_stylesheet=media1+,+media2&name_of_second_stylesheet=media3”

<p><code><txp:pap_link_printer_friendly /></code></p>

Put this tag in your individual article form. The link is not displayed in the printer friendly version.

Attributes:

linktext – Text to display, default is “Printer Friendly Version”
class – Class for the link, default is empty

Last edited by tranquillo (2007-05-27 12:12:15)

Offline

#2 2006-02-26 20:56:08

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: [archived] pap_print_article

I don’t understand. Does it do something more than the Print tool of a browser, using a print CSS file ?

Offline

#3 2006-02-27 19:38:03

tranquillo
Archived Plugin Author
Registered: 2005-03-07
Posts: 127
Website

Re: [archived] pap_print_article

“I don’t understand. Does it do something more than the Print tool of a browser, using a print CSS file ?”

Yes, in fact, it does. I used C++ to implement artificial intelligence. So this plugin can be used to point out to less experienced users, that there is a special stylesheet for printing.

Relax – Jeremie – I was just joking :-)

Offline

#4 2006-03-29 05:05:04

Marcos
Member
Registered: 2004-04-08
Posts: 70

Re: [archived] pap_print_article

Sorry, but… To use this plugin, must I create a css style specialy adapted to printer friendly?

Offline

#5 2006-03-29 06:07:54

tranquillo
Archived Plugin Author
Registered: 2005-03-07
Posts: 127
Website

Re: [archived] pap_print_article

“To use this plugin, must I create a css style specialy adapted to printer friendly?”

Yes.

Offline

#6 2006-03-29 08:58:54

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: [archived] pap_print_article

So, if I understand this correctly, this plugin then is for Browsers, that do not automatically select a printer style sheet, but which browsers do not ?(have downloaded, but not tried yet,I’d like to know really the reason first, why this pluginin must be used versus default browser behavior)

regards

Last edited by marios (2006-03-29 09:01:31)


⌃ ⇧ < ⌃ ⇧ >

Offline

#7 2006-03-29 09:58:14

tranquillo
Archived Plugin Author
Registered: 2005-03-07
Posts: 127
Website

Re: [archived] pap_print_article

“So, if I understand this correctly, this plugin then is for Browsers, that do not automatically select a printer style sheet”

No, the plugin is for internet users, that don’t know that a browser selects automatically a printer style sheet or if you want to give people the possibility to print an individual article page with other content or just the article text.

“I’d like to know really the reason first, why this plugin must be used versus default browser behavior”

There’s no obligation to use the plugin.

Offline

  1. Index
  2. » Archives
  3. » [archived] pap_print_article

Board footer

Powered by FluxBB