1
我想配置一個多語言的TYPO3網站。我試圖把這個代碼選項Page TSconfigTYPO3網站多語言配置
config {
linkVars = L
sys_language_uid = 0
sys_language_overlay = 1
sys_language_mode = content_fallback
language = sq
locale_all = sq_AL.UTF-8
htmlTag_setParams = lang="sq" dir="ltr" class="no-js"
}
[globalVar = GP:L = 1]
config {
sys_language_uid = 1
language = en
locale_all = en_US.UTF-8
htmlTag_setParams = lang="en" dir="ltr" class="no-js"
}
[global]
[globalVar = GP:L = 2]
config {
sys_language_uid = 2
language = it
locale_all = it_IT.UTF-8
htmlTag_setParams = lang="it" dir="ltr" class="no-js"
}
[global]
但sys_language_uid連接將L參數頁面URL時,沒有任何反應。我的模板是:
#about
ABOUT = CONTENT
ABOUT {
table = tt_content
select {
where = colPos=1
languageField = sys_language_uid
}
}
非常感謝,它工作完美:) –