Hallo,
ich möchte mehrsprachige Seite ausdrucken, bekomme aber die URL nicht richtig gesetzt, so dass immer die deutsche Seite im Drucklayout erscheint.
Wie füge ich den Parameter &L=1 an, damit die englische Seite gedruckt wird.
In SETUP steht:
Code:
# Sprachumschaltung START
config {
linkVars = L
sys_language_uid = 0
language = de
locale_all = de_DE
htmlTag_langKey = de
}
# English language, sys_language_uid = 1
[globalVar = GP:L = 1]
config.sys_language_uid = 1
config.language = en
config.locale_all = english
config.htmlTag_langKey = en
[global]
... und später wird ein Icon für die Druckansicht inkl. URL erstellt :
Code:
template.print3= IMAGE
template.print3.file = GIFBUILDER
template.print3.file {
XY = 48, 18
backColor = #909090
10 = IMAGE
10.file = fileadmin/template/image/print.gif
30 = TEXT
30.text = HTML
30.offset = 20, 13
30.fontFile = fileadmin/template/font/vera.ttf
30.fontSize = 9
30.fontColor = #000063
30.niceText = 1
}
template.print3.imageLinkWrap = 1
template.print3.imageLinkWrap.enable = 1
template.print3.imageLinkWrap.typolink{
no_cache = 1
parameter.data = field:uid
additionalParams = &type=98&uid
ATagBeforeWrap = 1
} Wie bekomme ich in additionalParams den richtigen Wert für L unter?
Folgendes hat nicht funktioniert:
additionalParams = &type=98&uid&L=config.sys_language_uid
additionalParams = &type=98&uid&L={$config.sys_language_uid}
additionalParams = &type=98&uid&L={$foreignLanguageID}
additionalParams = &type=98&uid&L={$ACT_LANG}
additionalParams = &type=98&uid&L=GP:L
additionalParams = &type=98&uid&L=GPvar:L
MfG,
Peter