Hallo an alle!
Ich habe schon das gesamte Foren-Archiv gewälzt, aber keine Lösung für mein Problem gefunden. Alles was ich will, ist ein Button/Text, der den User auf eine druckerfreundliche Version der Seite führt.
Ich habe mir die Extension tx_make_printlink installiert und nach Anleitung eingerichtet, aber es wird rein garnichts angezeigt.
Hier das Template dazu:
# Main TEMPLATE cObject for the BODY
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
# Feeding the content from the Auto-parser to the TEMPLATE cObject:
template =< plugin.tx_automaketemplate_pi1
# Select only the content between the <body>-tags
workOnSubpart = DOCUMENT_BODY
# Substitute the ###menu_1### subpart with dynamic menu:
subparts.menu_1 < temp.menu_1
# Defining the Print Element:
temp.PRINT = TEXT
temp.PRINT.value = printpage
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# Substitute the ###content### subpart:
subparts.content = COA
subparts.content {
10 = CONTENT
10 < styles.content.get
20 < temp.PRINT
}
}
# Main TEMPLATE cObject for the HEAD
temp.headTemplate = TEMPLATE
temp.headTemplate {
# Feeding the content from the Auto-parser to the TEMPLATE cObject:
template =< plugin.tx_automaketemplate_pi1
# Select only the content between the <head>-tags
workOnSubpart = DOCUMENT_HEADER
}
Kann mir jemand sagen was ich da falsch mache? Vielen Dank im Voraus.
Wind