Giter Club home page Giter Club logo

attribute_alias's People

Contributors

andreasisaak avatar backbone87 avatar baumannsven avatar cliffparnitzky avatar discordier avatar dmolineus avatar e-spin avatar minimodel avatar richardhj avatar stefanheimes avatar zonky2 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

attribute_alias's Issues

add own alias generating to use integers

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 Pflichtfeld, keine Erstgenerierung

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?

Error while saving

Contao: 3.3.6
MM: dev-tng (2581694a)
Attr: dev-tng (668e5a4)

It's not possible to save an alias attribute, following error occurs:

image

No additional error reportings etc.

Fehlende DCA Setting

Es fehlen hier einige Option, wie es die anderen Felder haben, wie zum Beispiel:

Backend-Class / Pflichtfeld / Sortierbar / Filterbar usw.

Feature: Generate alias manually

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.
metamodels-alias-generierung

Prüfen auf "Eindeutige Werte"

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.

.gitattributes file is missing.

Issue description

The .gitattributes file is missing in this repository and therefore files that should not be redistributed are included in the distribution.

add static field to use as fixed "prefix"

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-...."

Feature: id für Generierung

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.

MySQL strict mode compatibility

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?

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.