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 🙂Â
Hi Ricardo,
One more doubt i had regarding the issue. I was able to use Custom ContentQueryMain.xsl but if i want to specify a new ItemStyle.xsl as well. How should i go about doing it?
Oh awesome . thanks a lot Ricardo. It was so simple and I was thinking of editing the LVWP in SPD.
- 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