MetaModels / core

MetaModels Core Module
GNU Lesser General Public License v3.0
96 stars 42 forks source link

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

Open zonky2 opened 7 years ago

zonky2 commented 7 years ago

Checklist before I submit this issue report

I confirm that:

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

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 commented 4 years ago

@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 commented 4 years ago

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

MacKP commented 1 year ago

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