Edit title/caption of all pictures in an album

cpzhao

Joined: 2004-12-29
Posts: 14
Posted: Wed, 2004-12-29 15:57

In G2, the option to modify captions/titles/summary of all pictures in an album in one place is gone. This was available in g1. There was a page where all the pictures in an album is listed on the left and you can edit their captions/titles on the right hand side. I would like to see that feature back at the album level in G2. It makes editing captions/titles much easier.

Thanks, and Happy New Year!

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2004-12-29 16:54

ya, we'd like it too.. but someone has to write it.. any takers?

 
cpzhao

Joined: 2004-12-29
Posts: 14
Posted: Sat, 2005-01-01 04:12

Ok, since I asked, I took a stab at it myself. I got a VERY ROUGH version working.

Attached are the 3 files needed for mass edit of captions. Here is what I did:

I modified module.inc very slightly to add the link for "edit captions". I then created ItemEditCaption.inc and ItemEditCaption.tpl. I basically cloned them from ItemDelete because that had a list of all thumbnails. I then modified the RequestHandler quote based on ItemEditItem.

By VERY ROUGH, I mean the following:
1. I got it to a point that it is just working, for my needs. I did not test it for all possible situations, so it may very well fail in other situations. Ie, no stress, regression, or boundary testing.

2. In fact, I didn't even rename all the variables in the scripts properly. So the script may be a bit confusion to read

3. I do not know the code base that well. So, I simply modified things to make them work. It may not conform to the coding standard for this project, if there is any.

4. I did not bother with check-in the files into CVS because I don't think they are mature enough.

I sure hope one of you guys likes this feature and would actually spend the time to polish the code changes I made and make it part of the next release.

Thanks. 45 minutes to 2005, yeeeahh.

Changpeng Zhao

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sun, 2005-01-02 09:51

Thanks for getting the ball rolling, Changpeng. I've picked this up and am working on it, should have something to commit tomorrow.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Mon, 2005-01-03 04:08

I just committed this feature tonight. Check out the next nightly snapshot (or wait a few hours and get it from CVS) and let me know what you think.

 
mstr

Joined: 2004-06-29
Posts: 3
Posted: Fri, 2005-05-13 10:06

So, why is this feature not in G2 Beta?
Or is it just hidden very good?

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2005-05-13 15:27

"Edit Captions"

 
mstr

Joined: 2004-06-29
Posts: 3
Posted: Tue, 2005-05-17 10:06

:o Well, were exactly is that link located?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-05-17 10:42

mstr, you need at least g2 beta 2 (core version 0.9.10). of course, in german this link has another name.
it should be in the "actions" list of links in left hand side menu when viewing an album.

 
amanzi

Joined: 2005-04-07
Posts: 5
Posted: Sat, 2005-05-21 22:51

Is there a way to change the date of all the photos in an album at once?

Cheers - Stuart

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2005-05-21 23:02

see site admin -> maintenance -> refresh capture dates.
if you need something different, you could copy this maintenance task (source code) and adjust it to your needs.

 
amanzi

Joined: 2005-04-07
Posts: 5
Posted: Sat, 2005-05-21 23:07

Hmm - sounds possible... What happens to files that don't have EXIF dates - do these get reset or do they keep the dates that I have manually added?

Thanks - Stuart

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sun, 2005-05-22 00:00

no change is made to those items.

 
Zoroxeus

Joined: 2005-09-01
Posts: 1
Posted: Thu, 2005-09-01 11:26

Was wondering if there was the same type of thing but for watermarks ? we would have all the pics listed ... and could choose wihch ones to put a watermark for ... ?