Hallo,
ich verwende standard-druck-Modull und auf einigen Seiten den wohlbekannten Modull tx_rgaccordion1 zum Auf-und Zuklappen der verschiedenen Textbereiche.
Leider werden diese nicht ausgedruckt => Die Seite wird in dem Druckansichtfenster ganz normal geladen. Nicht in dem Druckmodus.
Hier ist mein TS-Code. Ganz normale Seiten werden in dem Druckansicht dargestellt und ganz normal ausgedruckt.
temp.print = IMAGE
temp.print.alttext = {$print.text}
temp.print.params = border="0"
temp.print.file = fileadmin/template_images/printer.gif
temp.print.stdWrap.postUserFunc = tx_make_printlink
temp.print.stdWrap.postUserFunc.include_post_vars = 1
temp.print.stdWrap.postUserFunc.target = _blank
temp.print.stdWrap.postUserFunc.popup = 1
temp.print.stdWrap.postUserFunc.windowparams = resizable=yes,toolbar=no,scrollbars=yes,menubar=yes,width=960,height=600
temp.print.stdWrap.postUserFunc.windowname = printwindow
temp.print.stdWrap.postUserFunc.baseURL = {$baseURL}
temp.print.wrap = |
temp.printcontent = COA
temp.printcontent.10 < styles.content.get
temp.printcontent.10.renderObj < plugin.tx_rgaccordion1
temp.printcontent.20 = TEXT
temp.printcontent.20.wrap (
<script type="text/javascript">
window.print();
</script>
)
alt_print >
alt_print = PAGE
alt_print.typeNum=98
#alt_print.config.sys_language_uid = {$sys_language_uid}
#alt_print.config.language = {$language}
#alt_print.config.locale_all = {$locale_all}
alt_print.bodyTag = <body onLoad="window.print();">
alt_print.10 = TEMPLATE
alt_print.10 {
template = FILE
template.file = fileadmin/template/template_print.html
marks {
PAGE_UID = TEXT
PAGE_UID.field = uid
PRINTCONTENT < temp.printcontent
DRUCKDATUM = TEXT
DRUCKDATUM.data = date:U
DRUCKDATUM.strftime = %d.%m.%Y
LAENDERUNG = TEXT
LAENDERUNG {
data = page:lastUpdated
#if.isTrue.data = page:lastUpdated
date = d.m.Y
data = register : SYS_LASTCHANGED
}
LOGO = TEXT
LOGO.wrap = fileadmin/template_images/logo.gif
PRINTFOOTER < temp.printfooter
}
workOnSubpart = DOCUMENT_BODY
}
alt_print.stylesheet = fileadmin/css/print.css