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

We are using SharePoint 2010 Enterprise Search and we want to add a link for each result on the results page that allows the user to open the folder containing the file in Explorer. Is it possible to achieve this by using the XSL Editor for the results page?

share|improve this question
add comment

1 Answer 1

You could render a hyperlink and use the NavigateHttpFolderIfSupported method from the built in OWS.js:

<a href="javascript:void(0)" onclick="javascript:NavigateHttpFolderIfSupported('FolderUrlToOpen', '_blank'); return false;">open</a>

Replace the FolderUrlToOpen with the corresponding URL of the results.

share|improve this answer
add comment

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.