Esteban Sanabria wrote: > Hello all! Do you know if there is a way to limit the text length that an > editor can add in a component text field? Like to say, this or that component > allows only 100 characters.
You could maybe use the common validationPattern property on a dialog control? http://documentation.magnolia-cms.com/display/DOCS45/Controls#Controls-Commonproperties The regular expression pattern to match a string of at least 0 but no more than 5 characters is ".{0,5}". Groovy example: "Hello" ==~ /.{0,5}/ ===> true "Hello world" ==~ /.{0,5}/ ===> false Nils. ---------------------------------------------------------------- For list details, see http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
