metamodels / attribute_translatedalias Goto Github PK
View Code? Open in Web Editor NEWThe translated alias attribute
License: GNU Lesser General Public License v3.0
The translated alias attribute
License: GNU Lesser General Public License v3.0
Wenn ich einen mehrsprachigen Datensatz anlege und beispielsweise "Resident Evil" als Titel habe und daraus einen Alias generiere wird mir im Deutschen "resident-evil" geniert und in der nächsten Sprache (weil der Film nun mal in DE und EN gleich heißt) "resident-evil-2".
Ist das so korrekt? Wenn ja, dann komm das nächste Problem. Ich lege einen weiteren Datensatz an und vergebe dort aber auch den Titel "Resident Evil". MetaModels scheint das aber nicht zu prüfen und erstellt mir nochmal einen Alias vom Wert "resident-evil-2" und meckert dann natürlich.
Setup:
tl_metamodel_translatedtext
.)Change order of meta and attributes in select
Wenn wir "Eindeutige Werte" bei Alias benutzten, prüft das Feld ob der Wert schon vorhanden ist. Allerdings ist in der Abfrage das Feld immer selber mit drin. Somit wird immer ein Werte gefunden und somit wird die ID angehängt.
Beim zweiten Speichern gibt es den Wert nicht mehr, somit wird der Alias wieder ohne ID gespeichert.
Hi guys.
Just a short question to the translated alias attribute.
Is the alias generation according to the settings from contao root page (ascii or unicode)?
I have a de/en page and for both i have set the alias to ascii & lowercase letters. But when the attribute generates the alias for german page, it still uses the unicode äöü.
I am running the latest Contao and MM versions.
Do i miss some settings?
Cheers!
In manchen Fällen (siehe aktuelle MM Demo) wird gar kein Alias generiert. Im Deutschen ja, im Englischen nicht. Also immer nur in einer Sprache. Und das auch nicht durchgängig sondern nur in manchen Datensätzen.
Ich habe noch nicht ermitteln können warum grade da.
When the alias is not changed in the secondary languages, it will not be inserted into tl_metamodel_translatedtext
.
When I edit another language and save it, the alias of this language is not inserted into tl_metamodel_translatedtext
if it is still the same as in the first language.
When I change the alias of the second language, it is saved, when I change it back to be identical with the alias of the first language, it is saved as well.
This is not really a bug, more a mild inconsistency.
However, it complicates third party development, for example solutions for the combination of MM and [changelanguage]. Therefore, I suggest that aliases are always saved into tl_metamodel_translatedtext
, even if identical.
See also the forum discussion: https://community.contao.org/de/showthread.php?45678-3-1-x-MM-mit-Sprachwechsler-funktioniert-nicht
Hi everyone,
it seems to me that the translated alias generation is not handled correctly: In a multilanguage setup with German (Fallback) and English, the translated alias gets not regenerated under certain conditions.
The English alias will still be "foo-bar". I would expect it to be 'foo-baz' though.
One could of course set "Force generate", but I need to give the editors the option to manually edit the alias.
Contao 4.4.21
MM 2.1 (Most recent dev-feature/contao4)
same as MetaModels/attribute_alias#19
.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)Hide virtual attributes
This attribute appears to be a direct copy of attribute_translatedtext.
@stefanheimes, what did you do here? Unfinished work in progress?
Please clarify and implement. :)
als Alias-Feld die ID des Datensatzes erlauben/freischalten oder bei Filter z.B. "einfache Abfrage" Attribut die ID erlauben
für viele Fälle reicht das prima ohne ellenlange Aliasbezeichnungen
siehe MetaModels/core#569
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.