我有一个新的TYPO3安装有4种语言,当我们正在处理导航时发生了一些奇怪的事情:非翻译页面在切换语言时已经显示了导航,尽管我们没有明确要求它。
系统在PHP 5.5上是TYPO3 7.6。
以下是我们如何构建HMENU:
config {
# use html5 doctype
doctype = html5
# meta tag with charset
metaCharset = utf-8
# render with this charset
renderCharset = utf-8
# clean up HTML code
disablePrefixComment = 1
# send additional headers
#additionalHeaders = X-UA-Compatible: IE=Edge
# do not put _INT-JS into external files
removeDefaultJS = external
# concatenate js files together
concatenateJs = {$config.compression}
# compress javascript files
compressJs = {$config.compression}
# move inline CSS to external files
inlineStyle2TempFile = 1
# concatenate css files together
concatenateCss = {$config.compression}
# compress CSS files
compressCss = {$config.compression}
# default target for external links
extTarget = _blank
# enable spam protect for email addresses and define the character offset
spamProtectEmailAddresses = -4
# in spam protected email link replace the at-sign with this html
spamProtectEmailAddresses_atSubst = <span style="display:none">not shown</span>@
# in spam protected email link replace the last dot with this html
spamProtectEmailAddresses_lastDotSubst = <span style="display:none">to make life hard for spam bots</span>.
# use L parameter for the language and pass through page type parameter
linkVars = L,type,noCompress
# language key to use for xlf translations (default/de/fr/etc.)
language = {$lang.current_key}
# set the locale (eg. de_CH.UTF-8)
locale_all = {$lang.current_locale}
# reference the sys_language record
sys_language_uid = {$lang.current_uid}
# language key to use for the <html lang=""> attribute
htmlTag_langKey = {$lang.current_key}
# if a page is not available in the current language, fall back to language 0 (default)
sys_language_mode = content_fallback ; 0
# hide content records, which do not exist in the current language, set to 1 if the default language of the record should be shown
sys_language_overlay = hideNonTranslated
# show images of default language content in overlay record (commaseparated list)
sys_language_softMergeIfNotBlank = tt_news:image
# default date format (overwrite for other languages)
dateFormat = %A %e. %B %Y
# default time format (overwrite for other languages)
timeFormat = Uhr %H:%M Sek %S
# enable the admin panel
admPanel = 1
# clear cache once a day
cache_clearAtMidnight = 1
# default caching period for a page
cache_period = 172800
# prefix #hash-links with the current path (needed for realurl)
prefixLocalAnchors = all
# enable real url if present
tx_realurl_enable = 1
# allow links to be made across different domains
typolinkEnableLinksAcrossDomains = 1
# force extbase to select all fe_users
tx_extbase.persistence.classes.Tx_Extbase_Domain_Model_FrontendUser.mapping.recordType >
# force extbase to select all fe_groups
tx_extbase.persistence.classes.Tx_Extbase_Domain_Model_FrontendUserGroup.mapping.recordType >
}
配置如下所示:
{{1}}
感谢您的支持!
此致 Tizian酒店
答案 0 :(得分:2)