[Typo3] stuck in print link

Jane Larsen noesgard at gmail.com
Sun May 8 13:57:08 CEST 2005


I'll just summarize what I've got:
The code bit from my set up as stated:
temp.PRINT = IMAGE
temp.PRINT.file = fileadmin/icons/print.gif
temp.PRINT.stdWrap.postUserFunc = tx_make_printlink

temp.PRINT.postUserFunc = tx_make_printlink
temp.PRINT.postUserFunc.include_post_vars = 1
temp.PRINT.postUserFunc.target = _blank
temp.PRINT.postUserFunc.popup = 1
temp.PRINT.postUserFunc.windowparams =
resizable=yes,toolbar=no,scrollbars=yes,menubar=no,width=800,height=500
temp.PRINT.postUserFunc.windowname = printwindow 

I removed '(' and ')' from the windowdparams...
The L parameter should be ok, it seems that title changes ok when I
click the print link... The only problem is that the content is not
shown (the result is: ###CONTENT###). But page title is OK (there is
no subtiltle and author at the moment)

I have the following line in the "Include static" field of my main template:
plugin.alt.print(98)

Should it be anywhere else too?

I'm not against using the other approach, but should this be so
difficult since it's partially working? I would just like to get this
working, then I can learn another technique....

Anybody's got the missing link?

//Jane

On 5/8/05, Christopher <tombedlam at yahoo.com> wrote:
> 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
> 
> _______________________________________________
> Typo3-english mailing list
> Typo3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>



More information about the TYPO3-english mailing list