bootstrap_package icon indicating copy to clipboard operation
bootstrap_package copied to clipboard

Language Menu doesn't work for news detail pages

Open mschmitz89 opened this issue 2 years ago • 0 comments

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?

mschmitz89 avatar Jan 19 '24 16:01 mschmitz89