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

bei Eingabefeldern HTML-Attribut maxlenght aufgrund der SQL-Feldgröße setzen #200

Closed
zonky2 opened this issue Feb 26, 2016 · 7 comments
Closed
Labels
Milestone

Comments

@zonky2
Copy link
Contributor

zonky2 commented Feb 26, 2016

bei Eingabefeldern HTML-Attribut maxlength aufgrund der SQL-Feldgröße setzen - z.B. bei Typ "numeric" auf 10 das SQL-Spalte auf int(10) definiert ist - aktuell gibt es keine Beschränkung

@discordier
Copy link
Member

We could do that.

@discordier
Copy link
Member

However, we should do this in the rellevant providers.
i.e. https://github.com/MetaModels/attribute_numeric should provide the relevant widget information.

@zonky2
Copy link
Contributor Author

zonky2 commented Jun 1, 2016

e.g. text element with 255 characters varchar(255)

@discordier
Copy link
Member

As noted above, the provider of the widget information should supply this information.

@stefanheimes
Copy link
Member

Per default the DCG have to support it: https://docs.contao.org/books/api/dca/reference.html#evaluation . We have maxlength/minlength/maxval/minval

@discordier
Copy link
Member

As noted above, it is not the responsibility of DCG to supply this information.
The information is already transferred to the widgets, yet the implementation of the definition builder needs to supply the eval data and therefore the attributes have to.

@zonky2 zonky2 added this to the Future milestone May 5, 2017
@zonky2 zonky2 changed the title bei Eingabefeldern HTML-Attribut maxlength aufgrund der SQL-Feldgröße setzen bei Eingabefeldern HTML-Attribut maxlenght aufgrund der SQL-Feldgröße setzen Feb 26, 2020
@baumannsven baumannsven modified the milestones: Future, 2.2.0 Mar 21, 2020
@zonky2 zonky2 modified the milestones: 2.2.0, 2.3.0 May 7, 2022
@zonky2 zonky2 added invalid and removed enhancement labels Jul 8, 2023
@zonky2
Copy link
Contributor Author

zonky2 commented Jul 8, 2023

move to MetaModels/core#1500

@zonky2 zonky2 closed this as completed Jul 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants