Hi all,
I'm trying to add a Content Query Web Part to my page layout. I'm currently having a hard time trying how to add the CQWP code snippet to the page layout mainly because I can't find how to generate the code snippet.
Here is what I want to do: I want to create a CQWP in the GUI first then customize it from there (to make it easy). I then want to get the generated code snippet from that page and put it in my page layout. Then I want to do some further customizations to the code snippet.
I'm using Publishing Pages for creating the CQWP. My problem is when i try to view the code using <View Source>, I don't see any code that I can re-use. Something to the likes of <PublishingWebControls:ContentByQueryWebPart> and then contains all the <property> that I can edit. When I try to use SharePoint Designer, it doesn't allow me to Edit the File (maybe because it is a publishing page)?
Sorry, but I'm pretty new to SharePoint so I'm not very in-depth yet. Can anyone please help me how to get the Code Snippet that I can re-use for a page layout?
Thanks!