Page 1 of 1

Gallery module title field length

Posted: Tue May 10, 2016 4:03 pm
by douglas1438
I'm using the Gallery 2.1.4 module, the image title is restricted to 100 characters through maxlength, is it possible to overwrite this?

Code: Select all

<input type="text" class="cms_textfield" name="m1_filetitle[13]" id="m1_filetitle[13]" value="my text description" size="30" maxlength="100">
Looking at the template editgallery.tpl it appears to be controlled by {$entry->title input} but I'm unsure as to what this relates to?

Thank you.

Re: Gallery module title field length

Posted: Wed May 11, 2016 9:03 am
by velden
Without having checked nor tested:

http://docs.cmsmadesimple.org/customizi ... -templates

Code: Select all

{$entry->title_input|replace:'maxlength="100"':'maxlength="200"'}
Notes:
- check the name of '$entry->title_input' (I don't know if it exists)
- check if a title of 200 chars really is stored in database
- don't forget about this custom template; when you upgrade Gallery in the future this custom template will be used although a new, extended version is needed[/s]

Better listen to Rolf:

Re: Gallery module title field length

Posted: Wed May 11, 2016 1:07 pm
by Rolf
better use description field instead