metamodels / attribute_alias Goto Github PK
View Code? Open in Web Editor NEWThe alias attribute
License: GNU Lesser General Public License v3.0
The alias attribute
License: GNU Lesser General Public License v3.0
we should add a checkbox to use the contao alias generating - it´s not possible to use integers at first character - or own MM implementation...
in MM it´s not a problem to generate al URL like /mytype/zxz/art-no/1234-34523.html
Wenn der Alias als Pflichtfeld leer ist, kommt nur die Meldung das man es ausfüllen soll. Ohne Pflichtfeld klappt alles wunderbar. Da der Alias nicht leer sein kann ist das Pflichtfeld eh obsolet, es sollte immer generiert werden wenn es leer ist.
Oder ist das Verhalten gewünscht?
Contao: 3.3.6
MM: dev-tng (2581694a)
Attr: dev-tng (668e5a4)
It's not possible to save an alias attribute, following error occurs:
No additional error reportings etc.
Die Auswahl für die Attribute, die für die Erzeugung des Alias verwendet werden soll ist leer. Attribute existieren, die Auswahl ist aber trotzdem leer. Ich vermute das es doch noch Probleme zwischen dem MCW und der Event-Implementierung gibt.
Es fehlen hier einige Option, wie es die anderen Felder haben, wie zum Beispiel:
Backend-Class / Pflichtfeld / Sortierbar / Filterbar usw.
should be alias generated even though the field isn´t at input mask, if option "force alias" set?
at this time, we must have the field at input mask...
at MM with hierachy generate alias with parent alias as option - that would be a similar option to the alias of the Contao pages
... and we shoud have a button "generate aliases new"
Ich habe eine mm_xxx Tabelle mit einer .sql über phpMyAdmin mit 6000 Datensätzen befüllt, da es ja noch kein Import-Plugin gibt. Nun möchte ich gerne das Alias-Feld, welches ich nicht befüllt habe mit MetaModels generieren lassen. (Jeden Datensatz im BE öffnen und schließen dauert mir zu lange ;) )
Anderer Anwendungsfall: Wenn man die Alias-Zusammenstellung ändert, müsste man auch die Möglichkeit haben die Aliase neu zu generieren.
Vielleicht könnte man dabei die Pflichtfelder pid, sorting und timestamp auch direkt prüfen und füllen, die stehen sonst alle auf Wert "0". Eine ID wird ja automatisch vergeben.
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.
The .gitattributes
file is missing in this repository and therefore files that should not be redistributed are included in the distribution.
hallo in die runde,
mit dem aktuellen nightbuild von gestern ist die auswahl bei dem alias-attribut
und bei dem kombinierten werten leider leer... siehe screens...
hat jemand eine idee?
lg.
alex
is "Always save" (options at edit mask) obsolete because we have "Force alias regenerating" (options attribute)?
attribute_alias/src/MetaModels/Attribute/Alias/Alias.php
Lines 81 to 84 in 212d0f5
Change order of meta and attributes in select
generate alias without german umlauts - add config from C 4.5
add static field at first to use as fixed "prefix" e.g. wie work with integer values like year or id...
in this time the alias add "id" if we use year 2017 to "id-2017-...." - after this we can use "year-2017-...."
Ist es möglich das Datenbankfeld id für die Alias-Generierung zu nutzen? Ich hätte gerne Unique-Aliase aber dann immer mit id, nicht nur wenn der alias schon vergeben ist.
with MySQL strict mode we have the follow error
An exception occurred while executing 'UPDATE mm_employees SET alias = ? WHERE id = ?' with params [null, 80]:
SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'alias' cannot be null
we can include serializeData
with
public function serializeData($value)
{
return $value === null ? '' : $value;
}
or we change getSQLDataType
and set default to NULL
btw: if we change the default from '' to NULL, we must write a updating script - or not?
Hide virtual attributes e.g. "file__sort"
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.