Data processor: language-menu
TYPO3
Show in appDescription
The LanguageMenuProcessor is a data processor used within FLUIDTEMPLATE or PAGEVIEW to generate a list of language menu items from the site configuration. It provides all the data an integrator needs to build a functional language switcher in Fluid, including link, availability status, and hreflang attribute for each language.
Goals
- I know that the LanguageMenuProcessor (alias language-menu) generates a list of language menu items based on the site configuration and assigns it to a Fluid variable via dataProcessing.
- I know how to configure the processor using languages = auto to automatically load all languages defined in the site configuration, or by providing a comma-separated list of language IDs.
- I know the purpose of the as property and how it controls the variable name used in the Fluid template.
- I know the key properties available per menu item in Fluid: item.active, item.available, item.link, item.hreflang, and item.navigationTitle.
- I know the difference between item.active (the currently active language) and item.available (whether a translation exists for the current page) and why both must be checked when rendering a language menu.
- I know how to use addQueryString.exclude to remove specific URL parameters from language menu links.
- I know how to render a language menu in Fluid that shows links for available translations and plain text for unavailable ones.
- I know that the hreflang attribute on language links is important for SEO and is provided directly by the processor.
Maintainer
Oliver Thiele
Web Development Oliver Thiele