Hi,
Try:
$xwiki.exists($myDoc.getParent())
On 14/06/06, BOUSQUET Jeremie <Jeremie.BOUSQUET(a)gemalto.com> 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 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