coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: parti02 on January 18, 2007, 05:25:31 PM

Title: Multiple Albums by Keyword Function
Post by: parti02 on January 18, 2007, 05:25:31 PM
Hi all,
if I understand it right, i can show the same pics in twice albums, only by using a keyword?
I have a album test1 with pics and a empty album test2.
Now the twice albums get the same keyword in the album proberties, why album test2 is still empty?

Parti
Title: Re: Multiple Albums by Keyword Function
Post by: Joachim Müller on January 19, 2007, 07:55:54 AM
Edit the pics in album 1, assign the keyword "ThisIsAUniqueKeywordForAlbum1" to every file that resides in album 1. Then edit the properties of album 2, enter "ThisIsAUniqueKeywordForAlbum1" into the field "Album Keyword". Save your changes and you should be done.
Title: Re: Multiple Albums by Keyword Function
Post by: parti02 on January 19, 2007, 06:48:40 PM
Ok, it works. Thx.
Exist a way to using this funktion for 400 pics in album1 automatically?
Title: Re: Multiple Albums by Keyword Function
Post by: Joachim Müller on January 20, 2007, 11:42:21 AM
In the Coppermine user interface: no. There might be plugins to accomplish this (not sure though, browse the plugins contributions board to find out). Another method is to use a third-party app like phpMyAdmin and run a query directly in your database, something likeUPDATE `yourCoppermineTablePrefix_pictures` SET `keywords` = 'ThisIsAUniqueKeywordForAlbum1'
WHERE `aid` ='1234' ;
You'll have to replace the table prefix and the album id (in default example I used 1234) with the proper values.