Gallery module title field length

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
douglas1438
Forum Members
Forum Members
Posts: 80
Joined: Thu Jul 21, 2011 10:29 am

Gallery module title field length

Post 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.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Gallery module title field length

Post 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:
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Gallery module title field length

Post by Rolf »

better use description field instead
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Post Reply

Return to “Modules/Add-Ons”