bootstrap_package
bootstrap_package copied to clipboard
Language Menu doesn't work for news detail pages
As mentioned in the news documentation, the language menu need this Processor to check if news detail pages are available or not. Otherwise you will get a link to the news translation even if it does not exist.
To fix this, you have to add:
page {
10.dataProcessing {
40 {
as = languagenavigation
addQueryString = 1
}
41 = GeorgRinger\News\DataProcessing\DisableLanguageMenuProcessor
41 {
if.isTrue.data = GP:tx_news_pi1|news
menus = languagenavigation
}
}
}
Maybe this can be included in the next update of bootstrap_package?