Jump to:

23486 Posts in 18995 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Images not showing up in search

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 536 Views
  • jere
    Avatar
    Community Member
    8 Posts

    Images not showing up in search Link to this post

    Hi there,
    I'm using the DisplayAnything module on SS 2.4.7. I can create galleries fine but when do a search using SearchForm no images show up in the search results. This is a site to showcase an artist's work, so all images in the assets file need to be searchable.

    By default jpg's are saved to the File table with ClassName 'Image'. When uploading jpg's to a gallery using the DisplayAnything module they seem to be saved with ClassName 'DisplayAnythingFile'. If I manually change the Classname of these records to "File" then they show up in the search results.
    Is this the default behaviour for SearchForm, to only include files from the asssets folder with ClassName specifically set to 'File'?
    If so, is there a way I can override that to include 'Image', 'DisplayAnythingFile' etc classnames too?

    Any help on this would be really appreciated; I've spent loads of time trying to figure it out.

  • Terry Apodaca
    Avatar
    Community Member
    109 Posts

    Re: Images not showing up in search Link to this post

    DId you find a solution? I am in a similar situation...

  • jere
    Avatar
    Community Member
    8 Posts

    Re: Images not showing up in search Link to this post

    No solution I'm afraid. Fortunately for me the client decided to ditch the search entirely so I've been able to forget all about it. Perhaps there has been more flexibility built into the search functionality in SS3? If I get a chance I might have a look into this.
    As an aside, have you considered using Google Custom Search instead to search images on your site? I've used it for site searches before and it's awesome. Might be worth a look.

  • marc79
    Avatar
    Community Member
    65 Posts

    Re: Images not showing up in search Link to this post

    Did you get chance to look at this?

    I've added search to my site and am not getting images back in the results.

    Interesting thing is tho, if I perform a blank search, i.e. remove any search term, and get back all results images are included.

    536 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.