Zum Inhalt springen

Gibt es eine Chance bei diesem Template?

Erstellt am 23. Mai 2004 · 1 Antwort · letzte Antwort am 24. Mai 2004

Tags: Frage

wg ·

Hallo, ich habe folgendes Problem die Multilangfunktion in mein Template einzubinden:

1. Das Template greift nicht auf ein Standardtemplate wie Business oder TU zu.

2. Es ist kein Frame Template.

Probleme scheinen folgende zu sein:

in der URL die L Variable wird nicht auf GLOBALS["TSFE"]->sys_language_uid gemappt ...

zudem ist GLOBALS["TSFE"]->lang =
GLOBALS["TSFE"]->langSplitIndex = 0

es müßte jedoch mindestens dastehen bei GLOBALS["TSFE"]->lang = en
GLOBALS["TSFE"]->langSplitIndex = 2

es sind zwar [globalVar = GP:L = 0]
config.sys_language_uid = 0
config.language = en
config.locale_all = en_EN

auch für die anderen Sprachen definiert aber wird nicht ausgewertet ..

Standardsprache soll Englisch sein und die übrigen Sprachen dann alphabetisch. Wenn sich ein Übersetzer findet soll eine neue Sprache hinzukommen.

Ich poste damit das ganze nicht zu lang wird das Template und die Definitionen in einer zusätzlichen Antwort. Das ganze kann man sich unter

http://www.care2x.de/index.php?id=400 ansehen.

Die Flaggenumschaltung funktioniert nicht (kleiner roter Pfeil) und der Sprachwechsel kommt auch nicht. Nach wochenlangen Versuchen alleine und gestern 6 Stunden zu zweit habe ich aufgegeben. Ich versuche es erst mal mit 2 - 3 Sprachen hin zu bekommen, aber in dem Projekt sind jetzt schon 20 Sprachen vertreten. Es wäre toll wenn da jemand mit etwas mehr Erfahrung helfen könnte.

wg ·

I found the mistake by doing some experiments :-)

The language part was before complete at the very end. I have no idea why the additional template
+ext: language give the result no template found. the same is that the maillistto faq css part make no affect.

If a FE user change his data he loose his group :-(

plugin.feadmin.fe_users.create.overrideValues.usergroup = 7

# Main Template part
# Don't forget to include: CSet (default) and content (default)
############################################

# Setting up 'page' to be the default PAGE object (type=0)
#######################################
lib.stdheader.10.stdWrap.wrap =
tt_content.stdWrap.dataWrap = <A name="{field:uid}"></a>

page = PAGE
page.config.index_enable = 1
page.typeNum = 0
page.stylesheet = fileadmin/templates/adjem/style.css
page.bodyTag = <body background="fileadmin/templates/adjem/images/background.gif" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
page.1 = TEMPLATE
page.1.marks.PAGE_UID = TEXT
page.1.marks.PAGE_UID.field = uid

# Showing up the Language Flags at the marker "LANGUAGEFLAGS"
################################################
page.1.marks.LANGUAGEFLAGS = PHP_SCRIPT
page.1.marks.LANGUAGEFLAGS.file = fileadmin/templates/scripts/languageMenu.php
page.1 {
template = FILE
template.file = fileadmin/templates/adjem/template.html
workOnSubpart = DOCUMENT_BODY
subparts.CONTENT_LEFT < styles.content.getLeft
subparts.CONTENT_RIGHT < styles.content.getRight
subparts.CONTENT_BORDER < styles.content.getBorder
subparts.CONTENT < styles.content.get
subparts.CONTENT.select.orderBy = sorting
subparts.CONTENT.select.where = colPos=0
subparts.CONTENT.select.languageField = sys_language_uid

select.orderBy = sorting
select.where = colPos=0
select.languageField = sys_language_uid

# Top Navigation
#######################################
subparts.TOPNAV = HMENU
# subparts.TOPNAV.special = directory
# subparts.TOPNAV.special.value = 1
subparts.TOPNAV.entryLevel = 0
subparts.TOPNAV.1 = TMENU
subparts.TOPNAV.1 {
NO.allWrap = |*| <span class="topnav">&nbsp;&#124;&nbsp;|</span> |*|
ACT = 1
ACT.allWrap = |*| <span class="topnav">&nbsp;&#124;&nbsp;| </span> |*|
}

# Bottom Navigation
#######################################
subparts.BOTTOMNAV = HMENU
# subparts.BOTTOMNAV.special = directory
# subparts.BOTTOMNAV.special.value = 1

# subparts.BOTTOMNAV.entryLevel = 1
subparts.BOTTOMNAV.1 = TMENU
subparts.BOTTOMNAV.1 {
NO.allWrap = |*| <span class="bottomnav">&nbsp;&#124;&nbsp;|</span> |*|
ACT = 1
ACT.allWrap = |*| <span class="bottomnav">&nbsp;&#124;&nbsp;|</span> |*|
}

# Leftside Navigation
#######################################
subparts.LEFTNAV = HMENU
subparts.LEFTNAV.entryLevel = 1
subparts.LEFTNAV.1 = TMENU
subparts.LEFTNAV.1 {

# Normal state properties
#######################################
NO.allWrap = <div class="leftnav1"> | </div>

# Enable active state and set properties:
#######################################
ACT = 1
ACT.allWrap = <div class="leftnav1-act"> | </div>
}

# Second level menu-object
#######################################

subparts.LEFTNAV.2 = TMENU
subparts.LEFTNAV.2 {

# Normal state properties
#######################################
NO.allWrap = <div class="leftnav2"> | </div>

# Enable active state and set properties:
#######################################
ACT = 1
ACT.allWrap = <div class="leftnav2-act"> | </div>
}

# Third level menu-object
#######################################
subparts.LEFTNAV.3 = TMENU
subparts.LEFTNAV.3 {

# Normal state properties
#######################################
NO.allWrap = <div class="leftnav3"> | </div>

# Enable active state and set properties:
#######################################
ACT = 1
ACT.allWrap = <div class="leftnav3-act"> | </div>
}
}

###############################################
#Template Variables "L" soll automatisch Links hinzugefügt werden
config.linkVars = L
###############################################

###############################################
#Sprachen definieren
#Zuerst die Standard-Sprache
#config.sys_language_uid = 0
#config.language = en

# English language, sys_language.uid = 0
[globalVar = GP:L = 0]
config.sys_language_uid = 0
config.language = en
config.locale_all = en_EN
#in Win-Umgebungen config.locale_all = english nehmen
[global]

# Danish language, sys_language.uid = 1
[globalVar = GP:L = 1]
config.sys_language_uid = 1
config.language = dk
config.locale_all = DK
#in Win-Umgebungen config.locale_all = dansk nehmen
[global]

# German language, sys_language.uid = 2
[globalVar = GP:L = 2]
config.sys_language_uid = 2
config.language = de
config.locale_all = de_DE
#in Win-Umgebungen config.locale_all = german nehmen
[global]

# Czech language, sys_language.uid = 5
[globalVar = GP:L = 5]
config.sys_language_uid = 5
config.language = cz
config.locale_all = cz_CZ
#in Win-Umgebungen config.locale_all = german nehmen
[global]

###############################################

#############################################################################################
# Additional Stuff
#############################################################################################

# Spam Protection for Email
#######################################
config {
spamProtectEmailAddresses = 2
spamProtectEmailAddresses_atSubst = (at)
}

# Admin Panel at the Fontpage
#######################################
config.admPanel = 1

# User Tracking
#######################################
config.tx_loginusertrack_enable = 1

# Simulata static pages
#######################################
config.simulateStaticDocuments = 1
#config.absRefPrefix = http://meine.seite.info/
config.simulateStaticDocuments_pEnc = md5
config.simulateStaticDocuments_addTitle = 20

# Press Center
#######################################
plugin.tx_cwtpresscenter_pi1 {
themesFolder = {$plugin.tx_cwtpresscenter.themesFolder}
theme = {$plugin.tx_cwtpresscenter.theme}
templateFile = {$plugin.tx_cwtpresscenter.themesFolder}{$plugin.tx_cwtpresscenter.theme}/template_newsitems.tmpl
orderBy = {$plugin.tx_cwtpresscenter_pi1.orderBy}
listViewContentCharacterLimit = {$plugin.tx_cwtpresscenter_pi1.listViewContentCharacterLimit}

recordsPerPage = {$plugin.tx_cwtpresscenter_pi1.recordsPerPage}

PIDMediaArchive = {$plugin.tx_cwtpresscenter.PIDMediaArchive}

absExportPath = {$plugin.tx_cwtpresscenter.absExportPath}
absUploadPath = {$plugin.tx_cwtpresscenter.absUploadPath}
relExportPath = {$plugin.tx_cwtpresscenter.relExportPath}
relUploadPath = {$plugin.tx_cwtpresscenter.relUploadPath}

general_stdWrap {
brTag = <BR>
parseFunc < styles.content.parseFunc
}

imagepopupSingle {
file.maxH = 75
params = align=absmiddle hspace=1 vspace=1
wrap = | <BR>
imageLinkWrap = 1
imageLinkWrap {
enable = 1
bodyTag = <body bgColor=white>
wrap = <A href="javascript:close();"> | </A>
width = 800

JSwindow = 1
JSwindow.newWindow = 1
JSwindow.expand = 17,20
}
}
}

plugin.tx_cwtpresscenter_pi2 {
themesFolder = {$plugin.tx_cwtpresscenter.themesFolder}
theme = {$plugin.tx_cwtpresscenter.theme}

templateFile = {$plugin.tx_cwtpresscenter.themesFolder}{$plugin.tx_cwtpresscenter.theme}/template_mediaarchive.tmpl

orderBy = {$plugin.tx_cwtpresscenter_pi2.orderBy}
recordsPerPage = {$plugin.tx_cwtpresscenter_pi2.recordsPerPage}

maxLatestRecords = {$plugin.tx_cwtpresscenter_pi2.maxLatestRecords}

PIDMediaArchive = {$plugin.tx_cwtpresscenter.PIDMediaArchive}

absExportPath = {$plugin.tx_cwtpresscenter.absExportPath}
absUploadPath = {$plugin.tx_cwtpresscenter.absUploadPath}
relExportPath = {$plugin.tx_cwtpresscenter.relExportPath}
relUploadPath = {$plugin.tx_cwtpresscenter.relUploadPath}

imagepopupSingle {
file.maxW = 250

wrap = | <BR>
imageLinkWrap = 1
imageLinkWrap {
enable = 1
bodyTag = <body bgColor=white>
wrap = <A href="javascript:close();"> | </A>
width = 800

JSwindow = 1
JSwindow.newWindow = 1
JSwindow.expand = 17,20
}
}

imagepopupList {
file.maxW = 100
wrap = | <BR>
imageLinkWrap = 1
imageLinkWrap {
enable = 1
bodyTag = <body bgColor=white>
wrap = <A href="javascript:close();"> | </A>
width = 800

JSwindow = 1
JSwindow.newWindow = 1
JSwindow.expand = 17,20

}
}

imagepopupLatest {
file.maxH = 50
params = align=absmiddle hspace=1 vspace=1
wrap = | <BR>
imageLinkWrap = 1
imageLinkWrap {
enable = 1
bodyTag = <body bgColor=white>
wrap = <A href="javascript:close();"> | </A>
width = 800

JSwindow = 1
JSwindow.newWindow = 1
JSwindow.expand = 17,20
}

}
}

#############################################################################

### COnfiguration of the Mail-To-FAQ plugin
################################
plugin.tx_maillisttofaq_pi1.listView.catSelSize = 1
plugin.tx_maillisttofaq_pi1.listView.catSelNoHeader = 1
plugin.tx_maillisttofaq_pi1.faq_email.admin_name = care2x.de List Admin
plugin.tx_maillisttofaq_pi1.faq_email.cc_email = info@gotodoc.org
plugin.tx_maillisttofaq_pi1.faq_email.regards = Regards, The CARE2X.DE List Manager Team
plugin.tx_maillisttofaq_pi1.readmail = 1
plugin.tx_maillisttofaq_pi1.readmail.url = http://www.care2x.de/CARE2x-Developers_Ar.406.0.html
plugin.tx_maillisttofaq_pi1.listView.results_at_a_time = 35
plugin.tx_maillisttofaq_pi1.messageDividers.123 (
_______________________________________________
Care2x-developer mailing list

/* Styles for the maillist to faq module */
.tx-maillisttofaq-pi1-listrow TD { background-color:#FAF4F1; padding-left: 3px; padding-right: 3px; }
.tx-maillisttofaq-pi1-listrow TR.tx-maillisttofaq-pi1-listrow-header TD { background-color:#E4D3CC; white-space: nowrap;}
.tx-maillisttofaq-pi1-listrow TR.tx-maillisttofaq-pi1-listrow-header TD P { font-weight:bold; font-size: 12px;}

.tx-maillisttofaq-pi1-listrow TR.tx-maillisttofaq-pi1-listrow-odd TD { background-color:#EEE9E6; }
.tx-maillisttofaq-pi1-listrow TR.tx-maillisttofaq-pi1-listrow-sticky TD { background-color:#DBE3EB; font-weight: bold; }
DIV.tx-maillisttofaq-pi1-listrow {width:700px;}

.tx-maillisttofaq-pi1 .tx-maillisttofaq-pi1-modeSelector TD {padding: 0px 7px 0px 7px; background-color: #E3F3C0; white-space: nowrap;}
.tx-maillisttofaq-pi1 .tx-maillisttofaq-pi1-modeSelector TD.tx-maillisttofaq-pi1-modeSelector-SCell {font-weight: bold; background-color: #A1D82F;}
.tx-maillisttofaq-pi1 DIV.tx-maillisttofaq-pi1-modeSelector {position:relative; left:-2px;}

.tx-maillisttofaq-pi1 .tx-maillisttofaq-pi1-browsebox TD { background-color:#E3F3C0; padding: 0px 7px 0px 7px;}
.tx-maillisttofaq-pi1 .tx-maillisttofaq-pi1-browsebox TD.tx-maillisttofaq-pi1-browsebox-SCell { background-color:#A1D82F; }
.tx-maillisttofaq-pi1 .tx-maillisttofaq-pi1-browsebox TD.tx-maillisttofaq-pi1-browsebox-SCell P { font-weight: bold; }

.tx-maillisttofaq-pi1 .tx-maillisttofaq-pi1-threads P.tx-maillisttofaq-pi1-root { font-weight: bold; margin-top:10px;}
.tx-maillisttofaq-pi1 .tx-maillisttofaq-pi1-threads P.tx-maillisttofaq-pi1-lost { color:#666666; font-weight: bold; margin-top:10px;}
.tx-maillisttofaq-pi1 .tx-maillisttofaq-pi1-threads P.tx-maillisttofaq-pi1-child { font-size: 11px;}

.tx-maillisttofaq-pi1 .tx-maillisttofaq-pi1-singleView H3.tx-maillisttofaq-pi1-subject {margin-top: 5px; margin-bottom: 10px;}

.tx-maillisttofaq-pi1 .tx-maillisttofaq-pi1-singleView P.tx-maillisttofaq-pi1-author { background-color:#E4D3CC;}
.tx-maillisttofaq-pi1 .tx-maillisttofaq-pi1-singleView P.tx-maillisttofaq-pi1-replyMsg A {padding: 1px 5px 1px 5px;}
.tx-maillisttofaq-pi1 .tx-maillisttofaq-pi1-singleView P.tx-maillisttofaq-pi1-replyMsg { margin-top:5px; }


.tx-maillisttofaq-pi1 .tx-maillisttofaq-pi1-singleView P.tx-maillisttofaq-pi1-replyauthor { background-color:#E4D3CC;}
.tx-maillisttofaq-pi1 .tx-maillisttofaq-pi1-singleView DIV.tx-maillisttofaq-pi1-reply {border: dotted 1px #666666; margin-top: 10px; padding: 5px 5px 5px 5px; background-color:#FAF4F1;}
.tx-maillisttofaq-pi1 .tx-maillisttofaq-pi1-singleView P.tx-maillisttofaq-pi1-replyauthor-nonMod { background-color:#cccccc;}
.tx-maillisttofaq-pi1 .tx-maillisttofaq-pi1-singleView DIV.tx-maillisttofaq-pi1-reply-nonMod {border: dotted 1px #666666; margin-top: 10px; padding: 5px 5px 5px 5px; background-color:#eeeeee;}

.tx-maillisttofaq-pi1 .tx-maillisttofaq-pi1-singleView P A {text-decoration: underline;}
.tx-maillisttofaq-pi1 .tx-maillisttofaq-pi1-singleView DIV.tx-maillisttofaq-pi1-thrMenu {margin-top: 5px; margin-bottom: 10px;}
.tx-maillisttofaq-pi1 .tx-maillisttofaq-pi1-singleView P.tx-maillisttofaq-pi1-threadLinks { background-color: #DBE3EB; font-size:13px; font-weight: bold;}
.tx-maillisttofaq-pi1 .tx-maillisttofaq-pi1-singleView P.tx-maillisttofaq-pi1-child { background-color: #EEF6FF; font-size:11px;}

.tx-maillisttofaq-pi1 .tx-maillisttofaq-pi1-singleView P.tx-maillisttofaq-pi1-back A {background-color: #F5733A; color: white; font-weight: bold; padding-left: 5px; padding-right: 5px;}
.tx-maillisttofaq-pi1 .tx-maillisttofaq-pi1-singleView P.tx-maillisttofaq-pi1-back {margin-bottom: 10px;margin-top: 10px;}

.tx-maillisttofaq-pi1 .tx-maillisttofaq-pi1-singleView P.tx-maillisttofaq-pi1-saveday { text-align: center; font-size:11px; margin-top: 10px; }
.tx-maillisttofaq-pi1 .tx-maillisttofaq-pi1-singleView P.tx-maillisttofaq-pi1-saveday A {background-color: #E4D3CC; padding: 0px 10px 0px 10px;border: #999999 dotted 1px;}

.tx-maillisttofaq-pi1 .tx-maillisttofaq-pi1-singleView P.tx-maillisttofaq-pi1-cmd {margin-top: 5px;margin-bottom: 5px; }
.tx-maillisttofaq-pi1 .tx-maillisttofaq-pi1-singleView P.tx-maillisttofaq-pi1-cmd A {padding: 0px 7px 0px 7px; background-color: #E3F3C0;}

.tx-maillisttofaq-pi1 .tx-maillisttofaq-pi1-singleView P.tx-maillisttofaq-pi1-modnote {color: #666666; background-color: #DBE3EB;}

.tx-maillisttofaq-pi1 .tx-maillisttofaq-pi1-singleView DIV.tx-maillisttofaq-pi1-faqitem {border-bottom: solid 1px #666666; margin-bottom: 20px; padding: 5px 5px 5px 5px; background-color:#EEF6FF;}
.tx-maillisttofaq-pi1 .tx-maillisttofaq-pi1-singleView P.tx-maillisttofaq-pi1-faqhead { background-color: #DBE3EB; font-size:13px; font-weight: bold;}

.tx-maillisttofaq-pi1 .tx-maillisttofaq-pi1-singleView DIV.tx-maillisttofaq-pi1-faqitem PRE.tx-maillisttofaq-pi1-faqapre,
.tx-maillisttofaq-pi1 .tx-maillisttofaq-pi1-singleView DIV.tx-maillisttofaq-pi1-faqitem PRE.tx-maillisttofaq-pi1-faqqpre {margin-top: 5px;margin-bottom: 5px;}

.tx-maillisttofaq-pi1 .tx-maillisttofaq-pi1-singleView DIV.tx-maillisttofaq-pi1-faqitem P.tx-maillisttofaq-pi1-faqa,
.tx-maillisttofaq-pi1 .tx-maillisttofaq-pi1-singleView DIV.tx-maillisttofaq-pi1-faqitem P.tx-maillisttofaq-pi1-faqq {margin-top: 15px;}
.tx-maillisttofaq-pi1 .tx-maillisttofaq-pi1-singleView DIV.tx-maillisttofaq-pi1-faqitem P.tx-maillisttofaq-pi1-faqsbj {font-size:13px; font-weight: bold;}

.tx-maillisttofaq-pi1 .tx-maillisttofaq-pi1-singleView DIV.tx-maillisttofaq-pi1-faqitem P.tx-maillisttofaq-pi1-faqedit {background-color: #DBE3EB; padding: 2px 2px 2px 6px; font-size: 11px;}

.tx-maillisttofaq-pi1 .tx-maillisttofaq-pi1-singleView DIV.tx-maillisttofaq-pi1-faqitem SPAN.tx-maillisttofaq-pi1-faqqhead,
.tx-maillisttofaq-pi1 .tx-maillisttofaq-pi1-singleView DIV.tx-maillisttofaq-pi1-faqitem SPAN.tx-maillisttofaq-pi1-faqahead {background-color: #DBE3EB; padding: 0px 4px 0px 4px; font-weight: bold; font-size:16px;}

.tx-maillisttofaq-pi1 .tx-maillisttofaq-pi1-singleView P.tx-maillisttofaq-pi1-managed { background-color: #E4D3CC;font-size:11px; text-align: center;margin-top: 10px;margin-bottom: 10px;}

.tx-maillisttofaq-pi1 .tx-maillisttofaq-pi1-catbox H3 {margin-top: 10px; margin-bottom: 0px; font-size:13px;}

.tx-maillisttofaq-pi1 .tx-maillisttofaq-pi1-singleView DIV.tx-maillisttofaq-pi1-replyForm {border: solid 1px black; margin: 5px 0px 5px 0px; padding: 5px 5px 5px 5px; background-color:#EEF6FF;}
.tx-maillisttofaq-pi1 .tx-maillisttofaq-pi1-singleView DIV.tx-maillisttofaq-pi1-replyForm P.tx-maillisttofaq-pi1-notice {font-size: 11px; background-color: #DBE3EB; padding: 5px 5px 5px 5px;}
.tx-maillisttofaq-pi1 .tx-maillisttofaq-pi1-singleView DIV.tx-maillisttofaq-pi1-replyForm P.tx-maillisttofaq-pi1-rpHead {font-weight: bold; font-size: 13px; background-color: #DBE3EB;}

.tx-maillisttofaq-pi1 DIV.tx-maillisttofaq-pi1-postForm {border: solid 1px black; margin: 5px 0px 5px 0px; padding: 5px 5px 5px 5px; background-color:#EEF6FF;}
.tx-maillisttofaq-pi1 DIV.tx-maillisttofaq-pi1-postForm P.tx-maillisttofaq-pi1-notice {font-size: 11px; background-color: #DBE3EB; padding: 5px 5px 5px 5px;}
.tx-maillisttofaq-pi1 DIV.tx-maillisttofaq-pi1-postForm P.tx-maillisttofaq-pi1-rpHead {font-weight: bold; font-size: 13px; background-color: #DBE3EB;}

[global]

)
plugin.tx_maillisttofaq_pi1.listView.daysBeforeDirectNotificationsWhenReply = 2
plugin.tx_maillisttofaq_pi1.listView.lgdIndicator.limit_3 = 5000

################################################