Renaming all items efficiently

pospues
pospues's picture

Joined: 2004-12-28
Posts: 31
Posted: Mon, 2005-01-03 03:11

After uploading, I have been finding renaming all of the photos quite tedious especially when creating albums with 100+ items. To facilitate this, I put together a simple "renameall" module. Have others found useful ways to accomplish this or would others find value in this functionality? If so, I can clean up the code and make it available. See screenshot.

I also put in some functionality to set all the titles to an incrementing title (useful when uploading photos that still have the unfriendly camera assigned filename).

Screenshot:

AttachmentSize
renameall.gif54.61 KB
 
c4actbe
c4actbe's picture

Joined: 2004-09-01
Posts: 83
Posted: Mon, 2005-01-03 06:36

is it available to download? ;)

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Mon, 2005-01-03 09:31

I just added a new feature last night that does part of this. It lets you recaption 9 items at once (I chose 9 because that's the average page size -- we can easily provide UI to let you choose to do more at once). It looks a lot like what you did, except that it provides the BBCode markup buttons as well as the keywords and descriptions fields.

I like the concept of making a "bulk tasks" module that we can add all kinds of random bulk tasks to. I'm not sure what types of bulk tasks should be part of the core, and which ones should be in a grab-bag type module, but I think that it's a great place to start. Good work!

 
pospues
pospues's picture

Joined: 2004-12-28
Posts: 31
Posted: Mon, 2005-01-03 16:23

c4actbe, if you want to try out my module, you can pick it up from http://www.pospues.com/addons/ though if bharat sees value in this, I would recommend ultimately using one provided within core.

bharat, with the "bulk tasks", I agree that it would be very helpful if we could contribute functions into it. Ideally those functions could be extensible so that other modules could contribute "bulk tasks" into it so that if I come up with something that's only appropriate for my site, that it would still be intergrated well with the rest. Does Gallery 2 already have something like the Extension Point -> Extension model that Eclipse's IDE uses for extensibility?

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2005-01-04 05:47

I'm not familiar with how Eclipse does it. Can you tell me in a nutshell how that's different from our module infrastructure? Are there patterns there that we can take advantage of? Our module system lets you integrate your own code into the core relatively seamlessly...

 
pospues
pospues's picture

Joined: 2004-12-28
Posts: 31
Posted: Tue, 2005-01-04 15:28

After beginning work on the XP Publishing module, I think the extension -> extension point model is closer to your generic support for plug-ins. The idea in Eclipse is to provide a service whereby one module (called a plug-in or bundle in Eclipse) can expose well known extension points that another plug-in can implement. For example, the Menu at the top of the IDE has an extension point that lets another module contribute menu items into it. I believe the only difference between how G2 plug-ins work and Eclipse's extension points is that there is more meta data associated with an extension point allowing the module to be dynamically started only when the menu item is clicked, not actually to show the menu item (some extension points don't even provide code, just meta data via the extension interface).

Eclipse's philosophy is to provide a significant number of extension points since you never know when someone will need to extend a given functionality. I believe G2's plug-in model (like registering a new way to add items) and the way callbacks are used does accomplish the same fundamental need. The one nice feature of extension-points is that they are significantly generic that you could use that one single model for everything from callbacks to plug-ins -- but given you have all this working nicely already...

Nice job in putting together a very flexible system. It's definitely enjoyable coding in a system well thought out, like G2. Thanks for everyone's invested time and attention. The more I see inside it, the more I'm impressed.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2005-01-04 20:26

The extension point idea sounds pretty interesting. We're definitely headed in that direction. The problem we have right now is that it requires a little bit of code to determine whether or not to show the menu items and the easiest approach has been to load the module for that. But I've been slowly reducing the requirements for loading modules so hopefully we'll be able to get it to the point where we load very little to get to stuff like that.

I agree that it would be better to have some generic system for most of our callbacks (item links, site admin views, etc) because it's painful to have to enumerate them all. That's on my list...

Glad to hear you're making good progress!

 
RwD
RwD's picture

Joined: 2005-01-09
Posts: 383
Posted: Tue, 2005-01-11 14:32
bharat wrote:
I just added a new feature last night that does part of this. It lets you recaption 9 items at once (I chose 9 because that's the average page size -- we can easily provide UI to let you choose to do more at once). It looks a lot like what you did, except that it provides the BBCode markup buttons as well as the keywords and descriptions fields.

Where would I find this new feature, it is not in the nightly build I got on sunday...

Edit:
According to pospues (http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&p=112842#112842) this functionality will be put in soon. Sorry to bother you, I am curious as to when it is available for I need to add 3000 pictures to have a decent test against my current system.

Edit:
I found it is in allready at an unexpected but not illogical place "edit caption" for an image (or album)

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Thu, 2005-01-13 07:38

Any suggestions for a better place to put it?

 
RwD
RwD's picture

Joined: 2005-01-09
Posts: 383
Posted: Thu, 2005-01-13 08:32

Well, it is kind of weird that on many places when I click on edit, delete or move I suddenly get to perform that action on multiple items. But on the other hand, it doesn't really get in the way either.

Just when I edit caption of the 5th item or so the screen does not scroll down to the 5th item which to me seems like a bug; "I wanted to edit the 5th item, instead my screen shows the first" I know the 5th one is also there, but I don't really want to scroll, especially if you implement the option to edit more images at ones.

I have no really good suggestions at the moment, but I would think the "bulk" actions need to be seperated. perhaps make a dropdown saying << bulk actions >> in which you can select the bulk action you want. Then changing all the singular actions back into real singulars as you would intuitively expect. And ofcourse apply this consistently throughout the galleries functions, no use in doing it in one place but not at the other.

Hopefully I mad myself clear a bit...
When it comes to user interfaces I usually am able to offer some ideas, insights or simply my point of view, I'll try to share them when I think something could be improved in the future if that is appreciated ;)

 
PrettyTough

Joined: 2005-03-17
Posts: 1
Posted: Thu, 2005-03-17 00:37
pospues wrote:
To facilitate this, I put together a simple "renameall" module.

I found this thread doing a search for both Title and filename, and wanted to ask: Is this renameall module available to all G2 users?

I have to say, I just installed and absolutely love G2, but I hate hate hate the way my filenames are showing up under all my pictures as the Title field. I don't want to just turn off display of Titles, because I want to use that field.

The way I see it, many end users that will be browsing my gallery are complete computer newbies. They aren't going to recognize all those titles as filenames. They don't need to know the filenames for any valid reason whatsoever. I've seen my web stats; most of my users are on AOL. Furthermore it's a martial arts site, and I think many of them have lost brain cells from blows to the head. Extra text that doesn't have obvious meaning is only going to confuse them. I am looking to create an extra user-friendly site to accomodate many of my users' need for utter simplicity; I don't want to put extraneous things out there that will confuse them or distract them from the text I want them to read or the navigational functionality of the site that allows them to get the information they are looking for.

I've spent about 20 minutes searching through the admin controls, trying to figure out a way to stop the Titles from being set to the filename, and haven't found it. Have I just missed it?

I have 100's of photos; I'd rather not have to go through and edit the Title's 9 at a time, either.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Thu, 2005-03-17 05:06

how did you add your photos?
add from browser, server, web and G1 import all have options for how the title is set.

 
Raven69
Raven69's picture

Joined: 2004-01-16
Posts: 24
Posted: Thu, 2005-03-17 10:44
pospues wrote:
... I put together a simple "renameall" module. ...

:P :P :P NEED IT NEED IT NEED IT NEED IT NEED IT :P :P :P

Please make available to the public G2 Community.

Tnx in advance and greetz from Vienna.

RaVen

 
mlissner

Joined: 2007-10-11
Posts: 7
Posted: Thu, 2007-10-11 03:44

Hey - this is a feature...right? There is a way to upload caption files...right?

If so, I can't find it anywhere. Am I missing something?