Feature #16886
closed
Localization of [FE][pageNotFound_handling] page
Added by Andreas Wagner almost 18 years ago.
Updated over 17 years ago.
Description
It would be really useful to be able to show a localized 404 page. As it is now, you can only show the website user one page no matter what language he or she is viewing the website in.
(issue imported from #M4836)
Well, there are always easy solutions, and there are complicated ones. The easiest solution in this case would be to write a little PHP condition in localconf.php before setting $TYPO3_CONF_VARS['FE']['pageNotFound_handling'].
Don't you think this is sufficient?
Ah, of course that is the way to do it! I didn't think about that. Thanks.
Would it be an idea to, somewhere in the future, let the install tool handle conditions like that? Maybe something in the line of typoscript conditions (/404/[globalVar = GP:L = 1]/404/en/[global]). Or maybe that is a bit overkill....
It won't work, because if no page is found, TYPO3 wouldn't know which template to parse... (just imagine a multisite installation with more than one main templates inside...).
I think my proposed solution is the best way to go.
Also available in: Atom
PDF