Duplicate images in search

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

Comments

  • 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
  • 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.
  • 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?
    Thanks
  • 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.
  • 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:

    http://tinyurl.com/km7frb

    Thanks
  • 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 `beaches` and `waves`. Then you could create dynamic albums to show all the `beaches` or `waves`. Then your images would reside only once physically.
Sign In or Register to comment.