![]() |
|
Duplicate images in search - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Duplicate images in search (/thread-4785.html) |
Duplicate images in search - saintwright - 2009-03-04 Hi - I have the same images within different albums - so when I do a search on my site - I can get the same image repeated in the search results. Is there any way I can just return one of the duplicate images? I am not sure where to look for the search function. thanks Duplicate images in search - steve.goodmedia - 2009-03-04 I dont know if this helps but i had the same problem - in options /gallery configuration/ there is a search fields section - i had tags and descritpion and title selected - and this was causing me duplicates in a search - i just selected tags and partial/ noting else and i dont seem to have this problem anymore Duplicate images in search - sbillard - 2009-03-04 If they are in different albums they are not duplicate images (even if they look the same.) Your only option is to do something like steve.goodmedia suggests. Duplicate images in search - bond303 - 2009-06-25 I'm having the same issue but Steve's suggestion doesn't fix it. How can the code be changed to check the for a duplicate file name and not display it? Duplicate images in search - sbillard - 2009-06-25 Unless you are quite proficient on PHP this is not something you can do. The search object would have to be modified to not supply duplicates. The best solution is not to use the same name for different images in the first place. Duplicate images in search - bond303 - 2009-06-25 Unfortunetly I'm not. I actually have the same image, with the same file name in different galleries (something which I would have thought would be quite common). I want to search by place name but only return one of the photos rather than multiple photos with the same file name from different galleries. Here is what I'm seeing: Thanks Duplicate images in search - sbillard - 2009-06-26 I understand what you are saying. But you need to understand that it is only a coincidence that your image happens to be the same. So far as zenphoto is concerned, copies of images are different images. Since you have them in different albums, you really could name them differently, BTW. Same thing with descriptions, etc. You do a search asking for all that match X, you get all that match X. You might want to do things differently--you can tag the images with various items, say |