[TYPO3-UG Denmark] Re: [TYPO3-UG Denmark] Re: [Typo3-UG Denmark] Re: [Typo3-UG Denmark] Printervenlig version med TemplaVoila - LØST

Søren Vedel sv at workhouse.com.br
Fri Feb 3 13:49:19 CET 2006


Hej Espen,

Prøv det her. Men ellers ville det have været mere interessant at se din 
kode, så vi evt. kunne have fundet fejlen.

MVh
Søren Vedel


#-----------------------------------------------------------------------------
#  Print Version URL
#-----------------------------------------------------------------------------

lib.print_url = TEXT
lib.print_url {
   value = <img src="fileadmin/template/images/print_icon.gif" alt="Vis 
printvenlig side" border="0" />
   typolink {
     target = _blank
     parameter = {page:uid},98 700x600:scrollbars=1,menubar=1
     parameter.insertData = 1
     additionalParams.cObject = COA
     additionalParams.cObject {

       5 = TEXT
       5.wrap = &print=1|
       5.required = 0

       10 = TEXT
       10.data = GPvar : no_cache
       10.wrap = &no_cache=|
       10.required = 1

       20 = TEXT
       20.data = GPvar : L
       20.wrap = &L=|
       20.required = 1

       30 = TEXT
       30.data = GPvar : backPID
       30.wrap = &backPID=|
       30.required = 1

       40 = TEXT
       40.data = GPvar : tt_news
       40.wrap = &tt_news=|
       40.required = 1

       50 = TEXT
       50.data = GPvar : cHash
       50.wrap = &cHash=|
       50.required = 1

       60 = TEXT
       60.data = GPvar : tx_ttnews|backPid
       60.wrap = &tx_ttnews[backPid]=|
       60.required = 1

       70 = TEXT
       70.data = GPvar : tx_ttnews|tt_news
       70.wrap = &tx_ttnews[tt_news]=|
       70.required = 1

       80 = TEXT
       80.data = GPvar : tx_ttnews|pS
       80.wrap = &tx_ttnews[pS]=|
       80.required = 1

       90 = TEXT
       90.data = GPvar : tx_ttnews|pL
       90.wrap = &tx_ttnews[pL]=|
       90.required = 1

       100 = TEXT
       100.data = GPvar : tx_ttnews|arc
       100.wrap = &tx_ttnews[arc]=|
       100.required = 1

       110 = TEXT
       110.data = GPvar : tx_ttnews|pointer
       110.wrap = &tx_ttnews[pointer]=|
       110.required = 1

       120 = TEXT
       120.data = GPvar : tx_myextension_pi1|pointer
       120.wrap = &tx_myextension_pi1[pointer]=|
       120.required = 1

       130 = TEXT
       130.data = GPvar : tx_myextension_pi1|showUid
       130.wrap = &tx_myextension_pi1[showUid]=|
       130.required = 1
     }
   }
}

#-----------------------------------------------------------------------------



# Default PAGE object:
page = PAGE
page.typeNum = 0
page.10 = USER
page.10.userFunc = tx_templavoila_pi1->main_page

# Print page PAGE object:
print_page = PAGE
print_page {
   typeNum = 98
   bodyTag = <body onload="javascript:window.print();">
   10 = TEXT
   10.value = This is the printable version:<hr>
   20 = TEXT
   20.field = title
   20.wrap = <h3>Page title:&nbsp; | </h3>
   30 = USER
   30.userFunc = tx_templavoila_pi1->main_page
   40 = TEXT
   40.value = <hr>End of printable version
}




More information about the TYPO3-UG-denmark mailing list