Translated tags
The translated tags attribute.
The translated tags attribute
License: GNU Lesser General Public License v3.0
hide translated atributes at define attribute translated tags because translated tags works only with untranslated attributes with own language column
The commit MetaModels/attribute_tags@ce00233 caused issue #4.
To solve the initial reason for above mentioned commit, we need to implement the method widgetToValue() in translated tags, so the configured sorting column will get used (instead of using the hardcoded column name "sorting" as in the reverted commit which reflected the real column name by accident).
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
.check-author.yml
or check this.github/
templates - see example but ensure to update the links in the files!.gittattributes
file (see MetaModels/core#846)minimum-stability
from composer.json
and add "metamodels/core": "~2.0@alpha"
and "contao-community-alliance/dc-general": "~2.0@beta"
LICENSE
file is present! (see https://github.com/MetaModels/core/blob/master/LICENSE)README.md
! (look at first rows https://raw.githubusercontent.com/MetaModels/core/master/README.md)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
Hey,
wie in dem anderen Issue geschrieben, taucht bei den Tags ein Fehler auf:
attribute_tags #16
Gruß,
Sebi
I confirm that:
(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, |
(Describe the problem you are having)
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'
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)
Thanks for help.
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}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.