0

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

1

2 Answers 2

1

Check this https://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.

2
  • What I really need is to know if there is a way to overcome this limitation. Commented Dec 23, 2011 at 6:51
  • 1
    Can you explain how this limits you?
    – Dave Wise
    Commented Dec 23, 2011 at 17:59
0

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, ... .

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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