kentico_jurajo
-
4/26/2013 6:17:57 PM
RE:Smart Search Results with Images
Hi,
If you are using CMS.File document type for both images and non-image files, you will have to create a custom function for the transformation that will detect this.
By default, the file attachment field is set as the image source field for the index. So, if image is recognized in this field, this image is used. If there is non-image file uploaded, the no-image picture is displayed. So, basically what you can use is a function which will be used in the GetSearchImageUrl function as the first parameter - this one is used if no image is found. So, your function will return the image according to the file type - PDF, DOC, XLS, etc.
Best regards, Juraj Ondrus
|