[TYPO3] print tt_news single view with realurl
Aji Johannes
aji.yahya at gmail.com
Mon Aug 20 17:20:59 CEST 2007
Hello,
well, I just solved the Print view of News Single and Shop (tt_products)
Single display. may be you like to use it too.
#### PRINT ###
#normal state:
lib.print = COA
lib.print {
1 = TEXT
1.wrap = <a href="#"
onclick="window.open('http://localhost/dummy/index.php?id={page:uid}&print=1'
,'print' , 'width=680, height=640,top=0,left=0 resizable=no,
location=1,scrollbars=yes');" >Print</a>
1.htmlSpecialChars = 1
1.insertData = 1
}
# if news single display:
[globalVar = GP:tx_ttnews|tt_news > 0]
lib.print = COA
lib.print {
1.data = GPvar : tx_ttnews | tt_news
1.wrap = <a href="#"
onclick="window.open('http://localhost/dummy/index.php?id={page:uid}&print=1&no_cache=1&tx_ttnews[tt_news]=|'
,'print' , 'width=680, height=640,top=0,left=0 resizable=no,
location=1,scrollbars=yes');" >Print</a>
1.htmlSpecialChars = 1
1.insertData = 1
}
[end]
# if products single display:
[globalVar = GP:tx_ttproducts_pi1|product > 0]
lib.print = COA
lib.print {
1.data = GPvar : tx_ttproducts_pi1 | product
1.wrap = <a href="#"
onclick="window.open('http://localhost/dummy/index.php?id={page:uid}&print=1&no_cache=1&tx_ttproducts_pi1[product]=|'
,'print' , 'width=680, height=640,top=0,left=0 resizable=no,
location=1,scrollbars=yes');" >Print</a>
1.htmlSpecialChars = 1
1.insertData = 1
}
[end]
[globalVar = GP:print > 0]
lib.print.value = index.php?id={page:uid}
[end]
regards
Aji
More information about the TYPO3-english
mailing list