core icon indicating copy to clipboard operation
core copied to clipboard

Filter "simple lookup" and standard value doesn´t work with multi language MMs

Open zonky2 opened this issue 7 years ago • 3 comments

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

  1. two Multi language MM with reference per select
  2. FE list with filter
  3. 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 shot342

change to german shot343

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

zonky2 avatar Apr 22 '17 15:04 zonky2

@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. ..?

zonky2 avatar Dec 01 '20 07:12 zonky2

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

zonky2 avatar Dec 01 '20 21:12 zonky2

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

MacKP avatar Feb 23 '23 12:02 MacKP