Dont default image name to file name

evenly

Joined: 2009-06-28
Posts: 6
Posted: Sun, 2009-06-28 02:00

Is it possible to change the default image name to ether null instead of the images file name while Adding a image?

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sun, 2009-06-28 04:20

You mean the name of the file on disk? Or the title that we assign to the image when we display it in the web page? If we name all the files the same thing you'll have a problem :-)
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git | help! vote!

 
evenly

Joined: 2009-06-28
Posts: 6
Posted: Sun, 2009-06-28 04:22

I mean the images name not the file name, currently in G2 you may set the "title" to blank.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sun, 2009-06-28 04:46

G3 has a file name, a title and a description. We're currently using the file name in the url, but I'm thinking about changing it to use the title in the url soon. I'm still a little confused about what you want. Can you back up and explain the big picture here? Thanks.
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git | help! vote!

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Sun, 2009-06-28 18:23
bharat wrote:
G3 has a file name, a title and a description. We're currently using the file name in the url, but I'm thinking about changing it to use the title in the url soon.

Can I suggest a little bit different approach here? If you are to use title, then any changes to it would change URL and any external references would be broken.

Could you consider approach used in WordPress:

* default URL build off the title
* any further changes to the title do not affect this URL
* author still able to go and adjust the URL later if needed

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sun, 2009-06-28 18:36

@Serge: Wordpress has a simpler problem than we do because it's not using hierarchical urls. So I assume that when you say "any further changes to the title do not affect this URL" you mean just the trailing part of the url that was generated by the title, right?

So the scenario there is:
* you're in albums Family > Weddings > 2009
* you create photo "Cake.jpg"
* we make the title "Cake"
* we make the url "Family/Weddings/2009/Cake"
* You come back later and rename the year from 2009 to 2008
* the url is now "Family/Weddings/2008/Cake"
* You come back later and retitle the photo from "Cake" to "CakeWithWhiteIcing"
* the url stays at "Family/Weddings/2008/Cake"

Does that sound about right? We can offer a way to change the url later, too. I think this is relatively easy to implement.

---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git | help! vote!

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Sun, 2009-06-28 19:23

Exactly!!!
When I mentioned WP, I meant their approach with trailing URLs for posts and you have put it nicely
I think this scenario would work great.
There could be an option to keep title in sync with url (checkbox next to "name/URL" to specify if custom name is allowed?)

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2009-06-30 02:53

I've filed http://sourceforge.net/apps/trac/gallery/ticket/490 for this and have started a discussion on gallery-devel about it.
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git | help! vote!

 
evenly

Joined: 2009-06-28
Posts: 6
Posted: Tue, 2009-06-30 04:59

Wow that looks good, but my original question was more about the title as shown on the page. right now if I upload a folder to the gallery, all the images have the title of img_0123.jpg I would rather not name the images on the page. I understand that you need a URL, that can stay the name of the file (img_0123.jpg) but is or will it be possible to not auto add the file name to the Title in G3 as you can in G2?

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sun, 2009-07-12 15:46

Ah, I understand now. Would you please file a feature request for that?
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git | help! vote!