Hello, I would like to detect orphaned pages, but not only pages without parent but also
pages with a non-existent/deleted parent page.
I do something like this (in a loop on all docs) in velocity:
[WIKI]
$xwiki.getDocument($bentrydoc.getParent()).getName()
[/WIKI]
Problem is: $bentrydoc.getParent() refers to a page that was deleted, but still getName()
returns the page name, and I couldn't find a .exists() member on Document object ...
How can I achieve this ?
Thks,
Jérémie
-----------------------------