Hi Guyz,
I needed to make some changes in the ContentQueryMain.xsl. I added a custom text to “OuterTemplate.Empty” template so that anytime the CQWP is empty, i can display a custom message to the user.
Now the client wants that changes should not be made to the original .xsl file. So i created a new one with different name. But i was wondering how do i specify the .xsl file for a CQWP on one page while the other CQWP use the original ContentQueryMain.xsl file.
Any help is greatly appreciated 🙂Â
- Export the web part
- In the .webpart file [that you just exported], add the location path of the new xsl file to the MainXslLink property
- Save and upload your .webpart file back into your site