core
core copied to clipboard
Filter "simple lookup" and standard value doesn´t work with multi language MMs
Checklist before I submit this issue report
I confirm that:
- [x] I have tested this with the latest version available
- [x] I have read documentation @ http://metamodels.readthedocs.org/en/ or http://metamodels.readthedocs.org/de/
- [x] I have checked the Contao community forums for references https://community.contao.org/
- [x] I have checked existing issues for duplicates and found none @ https://github.com/MetaModels/core/issues?q=is%3Aissue
My environment is:
Key | Value | Comments |
---|---|---|
PHP version: | ||
Contao version: | 3.5.25 | |
MetaModels version: | a15 | |
Installation via composer: | (yes) | |
Installed MetaModels packages: | ||
DCG version: | b39 |
Issue description
Have the filter rule a standard value woks this only in FE in the choosen BE language - that means: if you have EN as BE language, wokrs the filter at FE by english but not if you change the FE language to german
Steps to reproduce
- two Multi language MM with reference per select
- FE list with filter
- filter with simple lookup and a standard value (you can use as alternative the option "static parameter" an select the standard value at CE-MM-Filter)
Screenshots
English
change to german
Workaround
-
use "own SQL" ... or
-
work with "static parameter" and deselect standard value at filter rule... if you use own CE-MM-Filter at every language, you can choose at every language your own standard value - note: to switch to a other language tree at BE, change your BE language ;-)
Note
if we implement the multi language feature should work a "change language" between detail pages so we can switch from domain.com/en/product/details/my-shoe-123.html to domain.com/de/produkt/detail/mein-schuh-123.html
... may be
@discordier In a multilingual MM, you might want to include an MCW that allows selective selection. The question is whether the setting only makes sense for the FE module. ..?
We have discussed this on the MM cal - maybe changing the alias in select to ID is a workaround
maybe we can work with new "feature/translated metamodel" @discordier
Wenn im Checkbox-Filter 'Optionsbezeichnung als Parameter' ausgewählt ist, dann gibt es Probleme bei der Auswertung von Checkboxen -> die Parameter passen hier nicht (beim DB-Query wird dann bei einer anderen Sprache nichts "" übergeben). Stichwort zum Nachstellen -> Foundation News