[Typo3] stuck in print link

Christopher tombedlam at yahoo.com
Sun May 8 06:20:05 CEST 2005


Hiya,

--- Jane Larsen <noesgard at gmail.com> wrote:
> I will take a look, but as far as I can read the "plugin.alt.print"
> (which I have listed in "include static") should handle that or did I
> misinterpret?


Yep, you have misinterpreted. A print stylesheet is used to allow your
pages to be printable without the need for creating 'printable' pages. To
use plugin.alt.print, you create a second page template that displays all
your content but without all the frills, and create links on your page to
display these 'no-frills' pages. With a print stylesheet, you can dispense
with plugin.alt.print altogether. For more info, read the article Ben
linked to but, for example if you have a menu on a page that you would like
not to appear on the printed version of your page, you might use a setup
something like this:


HTML:
==========

<ul id="navigation">
...
...
...
</ul>



CSS:
==========

@media print {
  #navigation {display:none;}
}


You can also use a print stylesheet to make sure that, for example, the
text on your pages is black, serifed and sized in points on printed pages;
you have a very large degree of control over the outcome if you use css to
define print styles.


> I just think I miss some little code bit, but don't know what...
> 
> besides I can see that the link created by the plugin adds 2 'L'
> parameters, it seems to work ok, but is there any logical reason for
> this behaviour?
> 


Don't know about the 'L' params; I suspect it's your global setup and not
the print plugin though. With respect to coding errors, what about this:


temp.PRINT.postUserFunc.windowparams = (
 resizable=yes,toolbar=no,scrollbars=yes,menubar=no,width=800,height=500
)


I would guess that it should be either 

temp.PRINT.postUserFunc.windowparams = resizable=yes...

OR

temp.PRINT.postUserFunc.windowparams ( resizable=yes... )

I think the way you have it, '(' and ')' might get added to the html code.
Also - a random thought - have you included the print plugin's static
template in your site's main TS template?


-Christopher


		
Yahoo! Mail
Stay connected, organized, and protected. Take the tour:
http://tour.mail.yahoo.com/mailtour.html




More information about the TYPO3-english mailing list