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

Mehrfachauswahl Bezeichnung/Name und translated-Attribute #652

Closed
klauswagner opened this issue Nov 18, 2014 · 9 comments
Closed

Mehrfachauswahl Bezeichnung/Name und translated-Attribute #652

klauswagner opened this issue Nov 18, 2014 · 9 comments
Labels
enhancement This issue is about an enhancement (aka new feature)

Comments

@klauswagner
Copy link

Model1 hat ein translated_text-Attribut mit der Bezeichnung "Name". Im Model2 ist ein Mehrfachauswahl-Attribut angelegt. Dort wähle ich als Datenbanktabelle die Tabelle von Model1 aus. Im Dropdown von "Tabellenspalte für Bezeichnung/Name" erscheinen nun alle Attribute von Model1, außer die translated-Attribute, also auch nicht das Attribut "Name". Dieses wäre aber nötig um in der Backend-Eingabemaske von Model2 die benötigten Bezeichnungen hinter den Checkboxen anzeigen zu können.
Stelle ich das translated_text-Attribut auf ein normales text-Attribut um, kann ich als Bezeichnung/Name dieses auswählen.

Getestet mit Contao 3.3.6 und dem nightly tng vom 12.11.2014.

@tim-bec tim-bec added this to the Future milestone Nov 18, 2014
@tim-bec tim-bec added the enhancement This issue is about an enhancement (aka new feature) label Nov 18, 2014
@tim-bec
Copy link
Contributor

tim-bec commented Nov 18, 2014

Ja, das ist bekannt, aber wegen der aktuellen Struktur nicht so einfach lösbar. Wir werden das in der Zukunft durch alien tables lösen. Wie da der genaue Stand / Aufwand ist kann ich euch bei Bedarf rüberflanken.

@tim-bec
Copy link
Contributor

tim-bec commented Nov 18, 2014

Related: #581

@cboelter
Copy link
Contributor

@tim-bec wie ist denn hier der aktuelle stand? hänge gerade an dem Problem.

@tim-bec
Copy link
Contributor

tim-bec commented Jan 13, 2015

@cboelter wenn ich mich recht entsinne lösen wir doch genau das problem mit dem umbau auf factories bei metamodel eigenen attributen. translated_text scheint aber noch nicht umgebaut zu sein? cc @discordier

@discordier
Copy link
Member

Du meinst mit dem umbau der Tags und Select auf MetaModels aware.
Habe das Setup bei mir am Laufen, ich hab tags auf translated MetaModels und kann dort den translated title als select/tag value nehmen.
Was genau klappt nicht?

@cboelter
Copy link
Contributor

Also ich habe jetzt konkret ein MetaModel (translated) Kategorien (Translated Text und Translated Alias) und ein MetaModel (translated) Referenzen. Und innerhalb des MetaModels Referenzen habe ich ein AttributeTranslated-Tags wo ich dann auf das übersetzte MM referenziere. Das erzeugt bei mir folgende Meldung:

Fatal error: Uncaught exception Exception with message Query error: Unknown column 'mm_category.alias' in 'field list' (SELECT COUNT(mm_category.id) as mm_count, mm_category.id, mm_category.alias FROM mm_category GROUP BY mm_category.id ORDER BY sorting) thrown in system/modules/core/library/Contao/Database/Statement.php on line 283

@discordier
Copy link
Member

Da darfst du nun keine translated tags mehr verwenden sondern musst "normale" tags verwenden.
Die translated tags wollen ja pro Sprache eigene Datensaetze referenzieren.
Du willst aber ja nicht in deutsch eine andere Kategorie haben als auf Englisch.

Abgesehen davon ist es dennoch wohl noch ein bug, dass er da den fallback auf ein SQL query macht.

@cboelter
Copy link
Contributor

Ok, mein Fehler :( ... mit dem nontranslated tags funktioniert es einwandfrei. Besten Dank!

@discordier
Copy link
Member

Sollte alles tun.

@discordier discordier removed this from the Future milestone Apr 14, 2016
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This issue is about an enhancement (aka new feature)
Projects
None yet
Development

No branches or pull requests

4 participants