benjaminkott / benjaminkott/bootstrap_package
Language Menu doesn't work for news detail pages
- Dominant language
- PHP
- Stars
- 355
- Forks
- 212
- Avg merge
- 1h 4m
- Merged PRs (30d)
- 31
Description
As mentioned in the [news documentation](https://docs.typo3.org/p/georgringer/news/main/en-us/Tutorials/ExtendNews/DataProcessing/LanguageMenuProcessor.html), 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?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the linked news documentation and locate the bootstrap_package configuration that assembles the language menu for news detail pages. Compare its current behavior with the supplied TypoScript processor configuration, then verify that unavailable news translations no longer receive links.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- frontend, localization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100