Gallery image titles/file names

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Elise
Forum Members
Forum Members
Posts: 24
Joined: Sun Jan 03, 2010 10:13 pm

Gallery image titles/file names

Post 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?
Last edited by Elise on Sun May 09, 2010 6:58 pm, edited 1 time in total.
Jos
Support Guru
Support Guru
Posts: 4017
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: Gallery image titles/file names

Post 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.
Elise
Forum Members
Forum Members
Posts: 24
Joined: Sun Jan 03, 2010 10:13 pm

Re: Gallery image titles/file names

Post by Elise »

That is great! Thank you so much!
Elise
Forum Members
Forum Members
Posts: 24
Joined: Sun Jan 03, 2010 10:13 pm

Re: Gallery image titles/file names

Post by Elise »

I've upgraded my Galleryversion to 1.3 but still have the same issue....
Jos
Support Guru
Support Guru
Posts: 4017
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: Gallery image titles/file names

Post 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)
Elise
Forum Members
Forum Members
Posts: 24
Joined: Sun Jan 03, 2010 10:13 pm

Re: Gallery image titles/file names

Post by Elise »

I'm sorry, but $image->title_ doesn't work either ???
Elise
Forum Members
Forum Members
Posts: 24
Joined: Sun Jan 03, 2010 10:13 pm

Re: Gallery image titles/file names

Post by Elise »

All right, got it working now.
Thanks for helping.
Last edited by Elise on Mon May 10, 2010 11:43 am, edited 1 time in total.
Post Reply

Return to “Modules/Add-Ons”