I'm sure I read something briefly on the old board about this, but does anyone have a good snippet of code that allows for something like this? I want to place the same picture in different albums, such as a B&W album, or exhibition album which may include pictures from any number of other albums.
I'd appreciate any code or advice. Thanks!
You'd need to uplioad the file in multiple albums for the time being. But, this is a feature that is being discussed for a future release of CPG (but not in 1.2).
Importing fails though because it's a duplicate image. How do you get around that?
BTW, I think it would be very useful to have this in a future release as you've mentioned.
when using batch-add, you'll have to put it into a different folder (in fact to different pics with the same content as afar as the script is concerned).
GauGau
Ah, yes... hadn't thought about batch add. If you upload the file seperately, CPG will rename the second photo with the same name plus another character to distinguish it from the first.
my be we need a way to place keyword albums in the album listings
Hmm, different folders can be quite a mess, for both space and organization issues. I guess if you have telnet or ssh access then you could do this with symbolic links, just a guess though as I haven't tried.
The shame about doing it this was is you loose out on ratings and comments as the pictures are treated completely separately. I guess what you really want is a way to keep a photo's sql entry unique, but relax the way it handles duplicate photo's, or at least to have as an additional option to the the way it's implemented now.
As for keyword album listings, although it's an interesting idea I don't see it being as robust or simple as a user defined album. Nothing beats simply adding picture x to album y + z and having comments/ratings span across the two albums without having to edit the keywords on potentially hundreds or thousands of pictures.. Imagine making a change later to keywords to manage these kind of vitural "albums", to avoid potentially huge management problems would require a foresight that even late night psychic's would have trouble seeing. Well they would have trouble anyways, but I hope you get the picture.. :P