Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I need to display the image preview on my search result by replacing the code for the search-icon as below XSL code:

img align="absmiddle" src="http://site/image/123.jpg" border="0" alt="{imageurl/@imageurldescription}"

for my testing i replaced the {imageurl} by a static path to display the image and its working .... please help to find the parameter and replaced by the src"{imageurl}" and display the image inside my search result ??

regards,

share|improve this question

1 Answer 1

In my opinion is better if you start to debug your XSLT.

You could download the XML generated by the Search Result and use Visual Studio to made a good XSLT.

In this link you can read how to use VS2010 to debug the XSLT: http://msdn.microsoft.com/en-us/library/ms255605.aspx

And in this links you can find a step-by-step guide: http://salvatoredifaziosharepoint.blogspot.co.uk/2012/10/how-to-add-custom-value-in-search-core.html

http://salvatoredifaziosharepoint.blogspot.it/2012/04/how-to-modify-sharepoints-result-page.html

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.