Hi, Try: $xwiki.exists($myDoc.getParent()) On 14/06/06, BOUSQUET Jeremie <[email protected]> wrote:
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 -----------------------------
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws