Multiple Albums by Keyword Function Multiple Albums by Keyword Function
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Multiple Albums by Keyword Function

Started by parti02, January 18, 2007, 05:25:31 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

parti02

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

Joachim Müller

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.

parti02

Ok, it works. Thx.
Exist a way to using this funktion for 400 pics in album1 automatically?

Joachim Müller

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.