Get list of all publishing pages checked out
-
08-12-2019 - |
Domanda
For a specific SharePoint 2010 web site, is there a way to get a list of all publishing pages (Pages library) items that are checked out regardless of how many subfolders deep they are located? Thanks.
Soluzione
try to use this query:
SPQuery q = new SPQuery();
q.ViewAttributes = "Scope=\"Recursive\""
q.Query = "<Where><Geq><FieldRef Name='CheckoutUser' LookupId='TRUE'/><Value Type='int'>0</Value></Geq></Where>";
var pages = pagesList.GetItems(q);
Altri suggerimenti
Another, non code way to get a list of all checked out items, is the following. This is a neat small tool for your content editors, too.
- go to http://website/Reports%20List/AllItems.aspx
- Add new item. At the same query as above (0)
- go to the sitemanager http:///_layouts/sitemanager.aspx
- Select your library with publishing pages in it.
- Select in "View" the name of the query that you added:
In a publishing site you can use Manage Content and Structure and under view change it to "All Draft documents"
(Site actions > Manage Content Structure)
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a sharepoint.stackexchange