[SOLVED] Gallery - longer image titles

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
thomahawk
Power Poster
Power Poster
Posts: 312
Joined: Fri Jul 25, 2008 10:13 am

[SOLVED] Gallery - longer image titles

Post by thomahawk »

Hello
I have set up a gallery which uses the image title for a german image description and image comment for the english description.

The problem is, the title field seems to be limited in size, it only stores about 260 characters. But I can not find any reference to this so I dont know what to change to make it like the comment field (unlimited or a much higher character number).

Any ideas what I could try to find out where to change it?

Thanks
Thom
Last edited by thomahawk on Mon Apr 15, 2013 7:31 am, edited 1 time in total.
applejack
Power Poster
Power Poster
Posts: 1014
Joined: Fri Mar 30, 2007 2:28 am

Re: Gallery - longer image titles

Post by applejack »

Hi Thom

In the db table cms_module_gallery the title column is a varchar(255) you would need to change it to text and in the admin template you will also probably have to change the maxlength of the field. You may be better adding a custom field and using that as doing above could be an issue if updating the module.

You could ask Jos the module dev to change this.
User avatar
thomahawk
Power Poster
Power Poster
Posts: 312
Joined: Fri Jul 25, 2008 10:13 am

Re: Gallery - longer image titles

Post by thomahawk »

Thanks, Applejack. I was able to adjust it.

As you suggested: In php my admin, I opened cms_module_gallery, went into "structure" and made the "title" column the same properties (TEXT) (and empty limit field) like the "comment" column.

Now it works. No change necessary in editgallery.tpl or any other file.

Thank you!

Thom
Post Reply

Return to “Modules/Add-Ons”