Hi Sebastian,
On Fri, May 29, 2009 at 1:59 PM, Sebastian Kannengiesser <
sebastian.kannengiesser(a)gmail.com> wrote:
Guys, thanx for all your tips. Especially the
getXMLEncoded thing is nice
to
know of. But in my case, the document is not found with that statement,
i.e.
the foreach loop is not even iterated once.
I understand there must be a way, otherwise, how could the Orphaned pages
code find the document. I will try a little more and let you know, when and
how I got successful.
Not sure whether this would work, but since the documents are found by the
Orphaned Pages query, here's what you could try:
- Look at the orphaned documents page
- Identify all pages that you want to keep
- Edit those pages and give them a parent -> only faulty pages will now
appear on the orphaned docs page
- Run a script to delete those pages
The script would look something like:
#set($sql = " where doc.parent='' and doc.name<>
'WebHome'")
#foreach ($item in $xwiki.searchDocuments($sql))
#set($itemdoc = $xwiki.getDocument($item))
$itemdoc.delete()
#end
Good luck,
Guillaume
Many thanx again so far.
Cheers an have a nice weekend,
Sebastian
On Thu, May 28, 2009 at 8:30 PM, [Ricardo Rodriguez] Your EPEC Network ICT
Team <webmaster(a)environmentalchange.net> wrote:
Hi!
Sergiu Dumitriu wrote:
Sorry, it was supposed to be doc.name, not doc.space
Thanks Sergiu! I was getting an error and I was not able to explain it!
Cheers
--
Ricardo RodrÃguez
Your EPEC Network ICT Team
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
--
Guillaume Lerouge
Product Manager - XWiki
Skype ID : wikibc
http://guillaumelerouge.com/