Page 1 of 1

Gallery image titles/file names

Posted: Sun May 02, 2010 11:40 am
by Elise
I'm using cmsms 1.6.6 and Gallery 1.2.1 with the Fancybox template.
It's very nice but I have an issue: if I don't give an image a title, it will display the filename under the picture. I don't think this is very pretty. If I don't give the image a title then I don't want it to display a title. Does someone know the solution for this?

Re: Gallery image titles/file names

Posted: Sun May 02, 2010 9:35 pm
by Jos
In Gallery 1.2.1 it will be hard to accomplish if there are some images you give titles and some you don't. (if none of the images get titles, then you could easily delete the {$image->title} from the module-template)

However today I released version 1.3 and I noticed your request just in time to include it.

As of version 1.3 the $image->title variable will only contain the value of the title field.
I added $image->titlename which contains the filename when the title is empty.

Re: Gallery image titles/file names

Posted: Mon May 03, 2010 11:54 am
by Elise
That is great! Thank you so much!

Re: Gallery image titles/file names

Posted: Sun May 09, 2010 7:00 pm
by Elise
I've upgraded my Galleryversion to 1.3 but still have the same issue....

Re: Gallery image titles/file names

Posted: Sun May 09, 2010 7:11 pm
by Jos
I'm sorry, I notice it too now...

In one way or the other the wrong file got included  :-\

For now you can use $image->title_ (note the underscore)

Re: Gallery image titles/file names

Posted: Sun May 09, 2010 10:50 pm
by Elise
I'm sorry, but $image->title_ doesn't work either ???

Re: Gallery image titles/file names

Posted: Mon May 10, 2010 11:15 am
by Elise
All right, got it working now.
Thanks for helping.