in

SharePoint Blogs

The Best Place for SharePoint-related Blogs

Dave Wollerman's SharePoint Blog

I use this blog to share information with the community plus also as a repository for reference material on unique situations that I have come across.

View Dave Wollerman's profile on LinkedIn      Sogeti Logo

Search Core Results Web Part and XSL Link Property

I was customizing a search core results web part display recently and I wanted to have a sinle instance of the XSL used to translate the results since I will have multiple instances of the same search core results on many different site collections. I thought the "XSL Link" web part property of the search core results web part would allow this, but I was mistaken.

The issue is you can only reference an XSL file in the XSL Link web part property only if the XSL file resides on the same site collection as the web part is displayed. I tried referencing the file from _layouts and received and error, I tried referencing the file from another site collection, received same error. I know permissions is not a problem since none of these locations are locked down.

If there is anyone that knows a workaround for this I would love to hear it. Also, this was on an instance of MOSS Standard SP1.

Comments

 

AndyM said:

Hello,

Did you get around this issue? i've just encountered the same thing. It's a shame the XSL can't be in one central location.

Regards,

Andy

June 3, 2008 8:45 AM
 

dwollerman said:

I'm sorry, I have not found a way to reference an XSL file from outside the site collection.

The only way I can think of doing it is having the XSL deployed to the site collection via a feature and making the XSL file ghostableinlibrary. This will provide the link to the XSL file locally, but reference the XSL file from the feature folder allowing a single place to maintain updates.

June 3, 2008 8:52 AM

Leave a Comment

(required )  
(optional )
(required )  
Add

Need SharePoint Training? Attend a SharePoint Bootcamp!

Posts (c) their respective authors. Everything else (c) 2007 SharePoint Experts