Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

translated_tags not working #19

Closed
JLBA opened this issue Sep 1, 2022 · 2 comments
Closed

translated_tags not working #19

JLBA opened this issue Sep 1, 2022 · 2 comments
Labels

Comments

@JLBA
Copy link

JLBA commented Sep 1, 2022

Checklist before I submit this issue report

I confirm that:

My environment is:

(Please fill in the actual values from your environment)

Key Value Comments
PHP version: 7.4
Contao version: 4.9
MetaModels version: 2.1
Installation via composer yes
Installed MetaModels packages bundle_all, translated_tags,

Issue description

(Describe the problem you are having)

Steps to reproduce

  1. mm_equipe to list the team members (with translations fr, en, es)
    translated_tags 'zonegeo' linked to mm_pays
  2. mm_pays to list the countries of intervention (with translations fr, en, es for countries names)
  • translated_text 'nom_pays_trad'
  • alias : pays_ref_alias

Describe the behaviour of the application

I the input mask, I can't select tags with this error :
Error: An exception occurred while executing 'SELECT COUNT(source.id) AS mm_count, source.id, source.pays_ref_alias FROM mm_pays_ref source GROUP BY source.id ORDER BY nom_pays_trad ASC': SQLSTATE[42S22]: Column not found: 1054 Unknown column 'nom_pays_trad' in 'order clause'

Describe the expected behaviour of the application

For each member, I would like to select one or many countries of interventions. I want these countries names to be displayed with the right corresponding country name (fr: France, en : France, es: Francia)

Screenshots

image

Thanks for help.

@zonky2
Copy link
Contributor

zonky2 commented Sep 1, 2022

translated_tags is intended for tables that do not come from MetaModels and where there is a separate row for each language entry.

the "normal" tags attribute can automatically handle multiple languages if the relation goes to an MM table

@JLBA
Copy link
Author

JLBA commented Sep 1, 2022

ok. So I understand why it asks for language row.
My bad. Thanks for the answer.

@JLBA JLBA closed this as completed Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants