FluidTYPO3 / vhs

TYPO3 extension VHS: Fluid ViewHelpers
https://fluidtypo3.org
Other
189 stars 228 forks source link

v:page.languageMenu should use Site configuration in TYPO3 9/10 #1709

Closed yol closed 2 years ago

yol commented 3 years ago

Since TYPO3 9, setting up languages for frontend usage is handled in site configuration. LanguageMenuViewHelper does not consider this data, but only uses the sys_language DB table. It would be convenient if it used the site configuration instead, since more information is available there (such as the name of the default language).

yol commented 3 years ago

For more info, see https://docs.typo3.org/m/typo3/reference-coreapi/10.4/en-us/ApiOverview/SiteHandling/AddLanguages.html and https://api.typo3.org/10.4/class_t_y_p_o3_1_1_c_m_s_1_1_core_1_1_site_1_1_entity_1_1_site_language.html