Giter Club home page Giter Club logo

attribute_translatedtags's Introduction

Build Status Latest Version tagged Latest Version on Packagist Installations via composer per month

Translated tags

The translated tags attribute.

attribute_translatedtags's People

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

attribute_translatedtags's Issues

Tags sind nicht konfigurierbar, wenn das Ziel ein übersetzbares MM ist

Szenario:
MM-Functions sind MM mit translated-text als Funktionsnamen, weitere Felder sind nicht definiert.
MM-Products soll als (translated)Tags die MM-Functions einbinden - leider ist das im BE nicht sinnvoll möglich, da die translated-Attribute in der tabelle mm_functions nicht vorhanden sind und man schlecht die Tabelle tl_metamodel_translatedtext auswählen kann.

--- Originally created by davidmaack

Finalize 2.0.0

TODO:

[Contao 3] kein neuer Datensatz mit attribute_translatedtags

Unter Contao 3.1.4 und aktualler Nightly Build kann kein neuer Datensatz erstellt werden, wenn das Attribut translatedtags enthalten ist. Dabei kommt folgende Fehlermeldung:

Exception: Query error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '6),(74,4,,7),(74,4,,8),(74,4,,5),(74,4,,1),(74,4,,2),(74,4,,3),(74,4,,4),(74,4,,' at line 1 (INSERT INTO tl_metamodel_tag_relation (att_id, item_id, value_sorting, value_id) VALUES (74,4,,6),(74,4,,7),(74,4,,8),(74,4,,5),(74,4,,1),(74,4,,2),(74,4,,3),(74,4,,4),(74,4,,9),(74,4,,10),(74,4,,11),(74,4,,12),(74,4,,13),(74,4,,14),(74,4,,15),(74,4,,16),(74,4,,17),(74,4,,18),(74,4,,19),(74,4,,20),(74,4,,21),(74,4,,22),(74,4,,23),(74,4,,24),(74,4,,25),(74,4,,26),(74,4,,27),(74,4,,28),(74,4,,29),(74,4,,30)) in file .../system/modules/core/library/Contao/Database/Statement.php on line 282

translated_tags not working

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.

Column 'att_id' in where clause is ambiguous.

Fatal error: Uncaught exception Exception with message Query error: Column 'att_id' in where clause is ambiguous (SELECT COUNT(value_id) as mm_count, value_id AS item_id, tl_metamodel_translatedtext.item_id , mm_norika_sorten_icon.* FROM tl_metamodel_tag_relation RIGHT JOIN tl_metamodel_translatedtext ON(tl_metamodel_tag_relation.value_id=tl_metamodel_translatedtext.item_id) JOIN mm_norika_sorten_icon ON tl_metamodel_translatedtext.item_id=mm_norika_sorten_icon.id WHERE att_id='18' AND (tl_metamodel_translatedtext.att_id=3) GROUP BY value_id ORDER BY mm_norika_sorten_icon.sorting, tl_metamodel_translatedtext.item_id) thrown in /system/libraries/Database.php on line 686
#0 /system/libraries/Database.php(633): Database_Statement->query()
#1 /system/modules/metamodelsattribute_translatedtags/MetaModelAttributeTranslatedTags.php(131): Database_Statement->execute('18')
#2 /system/modules/metamodelsattribute_translatedtags/MetaModelAttributeTranslatedTags.php(235): MetaModelAttributeTranslatedTags->getValueIds(NULL, true, NULL)
#3 /system/modules/metamodels/MetaModelFilterSettingSimpleLookup.php(167): MetaModelAttributeTranslatedTags->getFilterOptions(NULL, true)
#4 /system/modules/metamodels/MetaModelFilterSettings.php(173): MetaModelFilterSettingSimpleLookup->getParameterDCA()
#5 /system/modules/metamodels/TableContent.php(48): MetaModelFilterSettings->getParameterDCA()
#6 /system/drivers/DC_Table.php(200): TableContent->buildCustomFilter(Object(DC_Table))
#7 /system/modules/backend/Backend.php(226): DC_Table->__construct('tl_content')
#8 /contao/main.php(120): Backend->getBackendModule('article')
#9 /contao/main.php(230): Main->run()
#10 {main}

See also:
https://community.contao.org/de/showthread.php?47160-Translated-Tags-Column-att_id-in-where-clause-is-ambiguous&p=315270#post315270

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.