I'm working in SharePoint 2010 Server and creating custom content query web parts (CQWP) that point to custom ItemStyle_myTemplates.xsl file. To do this, I've been creating the CQWP in the browser by adding a default CQWP and changing the Query piece. Then I export the CQWP to file on my local machine, edit various settings (add custom columns to CommonViewFields, etc.) and import back into SharePoint.
However, during the import, it appears under the Imported folder; it doesn't become part of the web part gallery. I then test it, export, import again. Is there a better way of doing this? How do you upload a CQWP to make it part of the web part gallery? Is it possible to do any of this in Designer? It won't let me open the publishing page that contains the CQWP, giving the message:
This page cannot be edited in SharePoint Designer. You can edit the content in the browser, or edit the corresponding page layout in SharePoint Designer.
Your help is appreciated. Thanks.