I've got a Homepage where I have two languages:
- German (Default)
- German easy (Second "Language")
Most of my pages have a translation for german easy
, but some don't, which is why I activated the Fallback Typ Fallback Show default language if no translation exists
, at first it seemed to work, since it showed content from the default fallback language german
, but when I opened up pages where I have a translation to german easy
as well, I see content from both languages on the page. This problem only occurs when I open the page with german easy
if I open the page with the default language, it only shows the content of that language.
I really don't know what kind of bug that is, or what its causing. I posted a screenshot of my settings and further below the settings of my config.yaml and the setup.typoscript, if that might help anyhow.
Btw, if I turn the fallback type to strict the bug doesn't occur, but then again pages with no translation don't work.
Default Language:
Second Language:
config.yaml
base: /
baseVariants: { }
errorHandling:
-
errorCode: '404'
errorHandler: Page
errorContentSource: 't3://page?uid=20'
languages:
-
title: Deutsch
enabled: true
base: /
typo3Language: de
locale: de_DE
iso-639-1: de
navigationTitle: Deutsch
hreflang: de-DE
direction: ''
flag: de
languageId: '0'
-
title: Deutsch_vereinfacht
enabled: true
base: /de/
typo3Language: de
locale: de_DE
iso-639-1: de
navigationTitle: Deutsch_vereinfacht
hreflang: de-DE
direction: ''
fallbackType: fallback
fallbacks: '0'
flag: de
languageId: '2'
rootPageId: 18
routes: { }
setup.typoscript
config {
absRefPrefix = auto
cache_period = 86400
debug = 0
disablePrefixComment = 1
doctype = html5
extTarget = _blank
index_enable = 1
index_externals = 1
index_metatags = 1
inlineStyle2TempFile = 1
intTarget =
linkVars = L
metaCharset = utf-8
no_cache = 0
pageTitleFirst = 1
prefixLocalAnchors = all
removeDefaultJS = 0
renderCharset = utf-8
sendCacheHeaders = 1
uniqueLinkVars = 1
// Disable image upscaling
noScaleUp = 1
// Compression and concatenation of CSS and JS Files
compressCss = 0
compressJs = 0
concatenateCss = 0
concatenateJs = 0
}
Anyone has an idea what causes this bug or how to fix it?
In the site-config you've to use the fallbackType: free and set your fallback language, in this case german (ID = 0 ), as fallback.
Then only the translated content is shown and in the navigation all not translated pages will be shown as well in the fallback-language