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

Can we put our custom xsl files for CBQ in a location other than Style Library (in Layouts directory in 14 hive for instance)?

Trying to do so is giving me the following error : "The web part references an untrusted XSL file. Only XSL files contained in this site's Style Library may be referenced."

Is there any way to overcome this?

By the way I am trying this in SP2010

share|improve this question
    
Check this stackoverflow.com/questions/6975151/… Loks like you have same issue. –  Ashish Patel Dec 22 '11 at 14:01

2 Answers 2

Check this http://stackoverflow.com/questions/6975151/sharepoint-content-query-webpart-untrusted-xsl-file

Loks like you have same issue. The file must belong to your site collection in which cqwp exist.

share|improve this answer
    
What I really need is to know if there is a way to overcome this limitation. –  justforkix09 Dec 23 '11 at 6:51
1  
Can you explain how this limits you? –  Dave Wise Dec 23 '11 at 17:59

I don't recommend you to place those custom xsl files (or any other style resources) in the layouts directory. You're losing the advantage of versioning, check-in-check-out, ... .

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.