b13 / menus

TYPO3 Extension for creating fast menus in a fast fashion
GNU General Public License v2.0
54 stars 21 forks source link

option to omit current language from languageMenu #92

Closed masi closed 2 months ago

masi commented 1 year ago

A setup for a two-language site does not need to configure excludeLanguages with TS conditions per language or check for isActiveLanguage in a Fluid-loop, if this option is avaliable.

Either excludeCurrentLanguage = 1 or excludeLanguages = _current,foo,bar

chesio commented 11 months ago

Hi @masi,

excludeLanguages setting allows use of stdWrap, so if you only want to exclude current language, you can do following (I just tested it with TYPO3 12):

menu = B13\Menus\DataProcessing\LanguageMenu
menu {
    [...]

    excludeLanguages.data = context:language:id
}
achimfritz commented 2 months ago

@masi i think this can be closed?