I have a multilingual language (One-Tree-Solution) with the languages German (default) and English. The news are in German and English. The website also has a newsletter page. The newsletter (Extension newsletter) is written on the German page. Now I want to add automatically the last 3 news to this newsletter. I use the following code, which works fine:
lib.news = USER
lib.news {
userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
extensionName = News
pluginName = Pi1
vendorName = GeorgRinger
switchableControllerActions {
News {
1 = list
}
}
settings < plugin.tx_news.settings
settings {
cropMaxCharacters = 300
limit = 3
detailPid = 50
overrideFlexformSettingsIfEmpty := addToList(detailPid)
startingpoint = 51
}
}
This gives me a list of the news in the default language. How can I add an additional list of the news in the second language as well?