[Typo3] Print Single view pages
jo at atlanticvideo.dk
Sun Mar 27 17:52:58 CEST 2005
I found a solution. I have inserted this in my TS setup:
temp.PRINT = TEXT
temp.PRINT.value = Print<img border="0"
temp.PRINT.postUserFunc = tx_make_printlink
temp.PRINT.postUserFunc.include_post_vars = 1
temp.PRINT.postUserFunc.target = _blank
temp.PRINT.postUserFunc.windowname = printwindow
print_page = PAGE
typeNum = 98
10 = TEXT
10.value = <img border="0"
20 = CONTENT
20 < styles.content.get
subparts.PAGE_UID = TEXT
subparts.PRINT_PAGE < temp.PRINT
subparts.PAGE_UID.field = uid
And in my HTML template I have inserted this:
<!-- ###PRINT_PAGE### begin -->Print<!-- ###PRINT_PAGE### end -->
Now I can print all pages.
But I would like to define my 'Print Friendly' page with a HTML template and
a CSS style sheet. But I can't figure out how to do that.
Can any of you tell me how I can use a HTML template to define my 'Printer
"Jogvan Olsen" <jo at atlanticvideo.dk> wrote in message
news:mailman.1.1111757609.22658.typo3-english at lists.netfielders.de...
>I use make_printlink v.1.5.0 to make print friendly versions of my
> In my TS setup I have this setup for make_printlink:
> include_post_vars = 1
> on_user_int = 1
> It works fine on all normal pages, but when I try to print a single view
> from tt_products, a single view from sp_directery or a single view News
> from tt_news it doesn't work anymore. Instead of making a print friendly
> of Single view, it generates a print friendly version of List view.
> My tt_products (Shop system (extended by ZK)) is setup to use 'pages as
> categories'. I display list view and single view on the same page. This
> page also contains all the products for the category.
> The url for single view looks like this:
> When I click 'Print version', this url generated by make_printlink for the
> print friendly version:
> The last part '&tt_products=15' of the url is missing in the print
> friendly version.
> I have tried to set 'plugin.tt_products.PIDitemDisplay = 42'. My single
> view is displayed on the new page, but when I select 'Print Version' I get
> this massage: 'Wrong parameters, GET/POST var 'tt_products' was missing.'
> on my print friendly page.
> When I try to print a single address for sp_directory I have the same
> problem - the last part of the url that point to the single address is
> missing in my print friendly version.
> When I try to print a single news from tt_news I get a 'no news_id'
> message on my print friendly version.
> Can anybody tell me what I am missing and how I can fix this, so I can
> print single view products, single addresses and single view news?
> I am using this plugins:
> CSS styled content
> Template Auto-parser
> Page Template Selector
> Address list
> Shop system (extended by ZK)
> Address Directory
> Make Print Link
> Thanks in advance
More information about the TYPO3-english