jkh80
-
5/31/2012 2:01:42 PM
Broken preview images for CMS.File documents in smart search results
I have a smart search for my site that is rendering results using the SmartSearchResultsWithImages transformation. The preview images show up fine in the results, except for when a CMS.File document is in the results that has an attachment of .PDF, .doc, .xls, etc.
In these cases, the image just shows up as broken. Has anyone run into this and managed to find a way around it?
My only thought at the moment is to write a method that would replace the GetSearchImageUrl() method currently in the transformation that would show the appropriate icon if the document is a CMS.File, or just use the default behaviour otherwise.
Is there any other way?
|