?
avatar coolcat-creations
coolcat-creations
6 Mar 2017

Can here a max-lenght field be added easily ? I think it´s very useful for any usecase...

thanks!

avatar coolcat-creations coolcat-creations - open - 6 Mar 2017
avatar joomla-cms-bot joomla-cms-bot - change - 6 Mar 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 6 Mar 2017
avatar laoneo
laoneo - comment - 6 Mar 2017

Just to confirm, it is the maxlength parameter here https://docs.joomla.org/Text_form_field_type?

avatar coolcat-creations
coolcat-creations - comment - 6 Mar 2017

Yes i think so! thanks! :-)

avatar coolcat-creations
coolcat-creations - comment - 8 Mar 2017

is this possible @laoneo ? :)

avatar coolcat-creations
coolcat-creations - comment - 9 Mar 2017

@laoneo just tried to help and add it myself, but no idea which files has to be changed.
For now i added the parameter here: /plugins/fields/text/params/text.xml
But where do i call it?

avatar laoneo
laoneo - comment - 10 Mar 2017

You was on the right track. The parameters from the core form fields can be added on the params and the plugin xml file.

Check out pr #14458 which adds the max length parameters to the text and textarea fields. If you want to add more parameters by yourself you can use that pr as template. Just ping me on glip when you need help for another parameter.

Guess this issue can be closed as we have a pr.

avatar zero-24 zero-24 - change - 10 Mar 2017
Status New Closed
Closed_Date 0000-00-00 00:00:00 2017-03-10 12:56:05
Closed_By zero-24
avatar zero-24 zero-24 - close - 10 Mar 2017

Add a Comment

Login with GitHub to post a comment