forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: dennyhalim on August 15, 2015, 07:31:39 am

Title: search keyword by folder
Post by: dennyhalim on August 15, 2015, 07:31:39 am
Hi i'm new with coppermine.

i have a couple album, lets name it : album-A, album-B, album-C.
in each album there are like thousand photos with keywords. and the keyword can be the same in different album

example : i have photos with keywords 0001 in album-A and also in album-B and album-C
but when i search 0001, all the pictures with keyword 0001 from album-A, album-B and album-C showed up.

what i want is, i want to search 0001 only from album-B.

is it posssible or is there a way?

thank you.
Title: Re: search keyword by folder
Post by: Αndré on August 17, 2015, 03:56:52 pm
I think that's not possible out of the box. But it should be possible with a custom search / meta album. How exactly shall it work? Do you need a search form where you enter the keyword and select the album or do you want to make the keywords below each picture clickable (actually, they are already clickable, so we need to change that link)?
Title: Re: Re: search keyword by folder
Post by: dennyhalim on August 18, 2015, 01:05:33 pm
I think that's not possible out of the box. But it should be possible with a custom search / meta album. How exactly shall it work? Do you need a search form where you enter the keyword and select the album or do you want to make the keywords below each picture clickable (actually, they are already clickable, so we need to change that link)?

thank you Αndré, I need search form where i enter the keyword and select the Album.
example : i enter the keyword 0001 and select the album-B and hit Enter.

the result only from album-B showing all pictures with keyword 0001.

hope you have a solutions in step by step.

thanks again.
Title: Re: search keyword by folder
Post by: Αndré on September 09, 2015, 05:12:05 pm
Please extract the attachment and upload it to your Coppermine's plugin directory. Then, install the plugin as described in the Coppermine docs. Now, you can access your custom search form at index.php?file=custom_search/search

I haven't added any language strings yet or took care of beautiful output, but it should already work as expected.