Hallo liebe Typo3-Gemeinde,
ich habe wieder mal ein Problem und bekomme es nicht gelöst. Habe schon mächtig Dokus und FAQs gewälzt... nix.
Ich hätte einfach gerne dass er unter arabisch ein anderes Template nimmt, machter auch, jedoch nur die CSS wird getauscht. Komischerweise habe ich unter Englisch dann auch das neue Template. Problem ist normal habe ich 3 verschiedene Templates die ich unter Seiteneigetnschaften Layout wechsle. Das muss natürlich auch noch abgefragt werden. Hier beispielhaft für Layout0. Geht aber nicht??Code:page = PAGE page.typeNum=0 . . ################################################## ######### TEMPLATE Page ################################################## page.headerData.12 = TEXT page.headerData.12.value( <meta name="robots" content="noindex,nofollow" /> <meta name="robots" content="noarchive" /> <link href="fileadmin/template/1/css/layout_2-1-3.css" rel="stylesheet" type="text/css"/> <!--[if lte IE 7]> <link href="fileadmin/template/1/css/patches/patch_2-1-3.css" rel="stylesheet" type="text/css" /> <![endif]--> <link rel="shortcut icon" href="/favicon.ico"/> ) page.10 = TEMPLATE page.10.template = FILE [globalVar=TSFE:page|layout=0] page.10.template.file = fileadmin/template/1/template_split.html page.10.workOnSubpart = DOCUMENT_BODY [end] [globalVar=TSFE:page|layout=1] page.10.template.file = fileadmin/template/1/template_full.html page.10.workOnSubpart = DOCUMENT_BODY [end] [globalVar=TSFE:page|layout=2] page.10.template.file = fileadmin/template/1/template_prod.html page.10.workOnSubpart = DOCUMENT_BODY [end] . . . . # French language, sys_language.uid = 9 [globalVar = GP:L = 9] page.config.sys_language_uid = 9 page.config.language = franzoesisch page.config.locale_all = fr_FR page.config.htmlTag_langKey = fra [global] # arabic language, sys_language.uid = 10 [globalVar = GP:L = 10] page.config.sys_language_uid = 10 page.config.language = arabisch page.config.locale_all = ar_AR page.config.htmlTag_langKey = ar [global] [globalVar = GP:L = 10,TSFE:page|layout=0] page.10.template.file = fileadmin/template/2/template_split.html page.10.workOnSubpart = DOCUMENT_BODY page.headerData.12.value( <meta name="robots" content="noindex,nofollow" /> <meta name="robots" content="noarchive" /> <link href="fileadmin/template/2/css/layout_2-1-3.css" rel="stylesheet" type="text/css"/> <!--[if lte IE 7]> <link href="fileadmin/template/2/css/patches/patch_2-1-3.css" rel="stylesheet" type="text/css" /> <![endif]--> <link rel="shortcut icon" href="/favicon.ico"/> ) [end] # English language, sys_language.uid = 11 [globalVar=GP:L=11] page.config.sys_language_uid = 11 page.config.language = englisch page.config.locale_all = en_GB.ISO88591 page.config. page.config.htmlTag_langKey = eng [global]
Könnt ihr den Fehler entdecken?
Hab jetzt nochmal folgendes probiert, geht leider auch nicht:
Code:page.10 = TEMPLATE page.10.template = FILE [globalVar=TSFE:page|layout=0] page.10.template.file = fileadmin/template/1/template_split.html [end] [globalVar=TSFE:page|layout=1] page.10.template.file = fileadmin/template/1/template_full.html [end] [globalVar=TSFE:page|layout=2] page.10.template.file = fileadmin/template/1/template_prod.html [end] [globalVar = GP:L = 10]&&[globalVar=TSFE:page|layout=0] page.10.template.file = fileadmin/template/2/template_prod.html [global] [globalVar = GP:L = 10]&&[globalVar=TSFE:page|layout=1] page.10.template.file = fileadmin/template/2/template_split.html [global] [globalVar = GP:L = 10]&&[globalVar=TSFE:page|layout=2] page.10.template.file = fileadmin/template/2/template_full.html [global] page.10.workOnSubpart = DOCUMENT_BODY
Geändert von Endolino (30.01.2009 um 12:43 Uhr)
Hallo nochmal,
leider bin ich übers Wochenende auf kein zufriedenstellendes Ergebnis gestoßen. Nur folgendes hat sich als Übergangslösung erwiesen, würde sich aber in Zukunft nicht dynamisch an neue Seiten anpassen. Ich müsste jedes Mal die Bedingung für neu erstellte Seiten erweitern:
Code:################################################## ######### Language Template Changer ################################################## [globalVar = GP:L = 10] page.10.template.file = fileadmin/template/2/template_split.html [end] [globalVar = GP:L = 10] && [PIDinRootline = 15] page.10.template.file = fileadmin/template/2/template_full.html [global] [globalVar = GP:L = 10] && [PIDinRootline = 18,19,20,21] page.10.template.file = fileadmin/template/2/template_prod.html [global] [globalVar = GP:L = 10] && [globalVar = TSFE:id = 10,TSFE:id = 9,TSFE:id = 8,TSFE:id = 7,TSFE:id = 16,TSFE:id = 17,TSFE:id = 13,TSFE:id = 12] page.10.template.file = fileadmin/template/2/template_full.html [global] [globalVar = GP:L = 10] && [globalVar = TSFE:id = 18] page.10.template.file = fileadmin/template/2/template_split.html [global] [globalVar = GP:L = 10] && [globalVar = TSFE:id = 19] page.10.template.file = fileadmin/template/2/template_split.html [global] [globalVar = GP:L = 10] && [globalVar = TSFE:id = 20] page.10.template.file = fileadmin/template/2/template_split.html [global] [globalVar = GP:L = 10] && [globalVar = TSFE:id = 21] page.10.template.file = fileadmin/template/2/template_split.html [global]
Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
Lesezeichen