Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

General Questions /

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

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

Images not showing up in search

Go to End

4 Posts   1084 Views


Community Member, 8 Posts

14 July 2012 at 4:20pm

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

Community Member, 112 Posts

30 August 2012 at 6:26am

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


Community Member, 8 Posts

31 August 2012 at 8:32am

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.


Community Member, 65 Posts

24 January 2014 at 3:15am

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.