The query to get orphaned pages for sure would be
#set ($sql = "where doc.parent is null or doc.parent=''")
Ludovic
Cody Burleson wrote:
One way is to do a search for the doc called "AllDoc", usually
"Main.AllDocs". This lists all documents in the Wiki. Or, you can also
just run a search on the underscore chracter "_" as a keyword. That
will return quite a bit of links. My favorite, however, is this Page
Manager script that someone submitted recently; it can really help you
find docs:
1 Browse by Web Space
This page lists the first 500 pages that are not within the XWiki
space. It can help with some page management. One of the developers in
the XWiki mailing list shared this.
paste snippet as code content in a new page object...
SNIP---------------------------------------
#set ($sql = "doc.web!='XWiki' order by doc.fullName")
#set ($start = 0)
#set ($nb = 500)
#set($curweb="")
#foreach ($item in $xwiki.searchDocuments($sql, $nb , $start))
#if ($xwiki.hasAccessLevel("view", "${context.database}:${item}"))
#set($bentrydoc = $xwiki.getDocument($item))
#if($curweb!=${bentrydoc.web})
<div>
1.1 ${bentrydoc.web}
</div>
#set ($curweb = ${bentrydoc.web})
#end
* [$bentrydoc.name>${bentrydoc.web}.$bentrydoc.name] by
$xwiki.getLocalUserName($bentrydoc.author) on
$xwiki.formatDate($bentrydoc.date,"MMMM dd, yyyy HH:mm") <a
href="$bentrydoc.getURL("edit")">edit</a>
#end
#end
END SNIP---------------------------------
==================================
Cody Burleson
*"Rodrigo Paes" <rbp(a)les.inf.puc-rio.br>*
08/31/2005 12:36 PM
Please respond to
xwiki-users(a)objectweb.org
To
<xwiki-users(a)objectweb.org>
cc
Subject
[xwiki-users] Orphaned Pages
Hi,
How can I find orphaned pages?
[]’s
Rodrigo Paes
PHD Student - Computer Science - PUC-Rio - _rbp(a)les.inf.puc-rio.br_
<mailto:rbp@les.inf.puc-rio.br>
Messenger - _r0drigopaes(a)hotmail.com_ <mailto:r0drigopaes@hotmail.com>
Web-page: _http://www.teccomm.les.inf.puc-rio.br/rodrigo/_
"Só existem duas certezas na vida: a morte e os impostos"
--
You receive this message as a subscriber of the
xwiki-users(a)objectweb.org mailing list.
To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org
For general help: mailto:sympa@objectweb.org?subject=help
ObjectWeb mailing lists service home page:
http://www.objectweb.org/wws
------------------------------------------------------------------------
--
You receive this message as a subscriber of the xwiki-users(a)objectweb.org mailing list.
To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org
For general help: mailto:sympa@objectweb.org?subject=help
ObjectWeb mailing lists service home page:
http://www.objectweb.org/wws