Content Request Web Part does not display without a Web Part zone
I am creating a WCM Sharepoint site for a client.
As part of the page layout, I have inserted the Content Request Web Part directly into the page, rather than into the Web Part zone (so users cannot edit it). Everything works fine in my development environment, however, when I deployed it for production, the web part says "no items returned".
When I went into the features directory and changed the page layout to include a webpage zone wrapper, it fixed the problem, but I really don't want it to have a web part zone. My development environment is Windows 2003, but the production site is Windows 2008.
Can someone please explain why it can't work?
Thanks tosource to share
A quick idea is that you can right-click the WebPart zone in SharePoint Designer and uncheck the options that allow users to control it.
You will have the web page on the page just as "locked" as if it were outside the WP zone.
Edit
Parameters in WebPartPages: WebPartZone tag:
allowlayoutchange="false"
allowpersonalization="false"
allowcustomization="false"
source to share
This may not be how your problem is, but keep in mind that if you embed the CQWP directly into the PageLayout, it doesn't have access to the SPContext.Current (i.e. the web part doesn't know where it is in the site hierarchy). so it will by default return everything in the site collection. (In such a case, it would appear that it will return everything and not nothing.) Here's a post explaining a workaround, if this is indeed related to your problem:
http://suguk.org/blogs/sharepointhack/archive/2008/09/17/13785.aspx
source to share