Goodday, Couldn't you just use the getLevel method? Or perhaps check to see if the node has a parent??
Regards, Erik. -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] Sent: vrijdag 6 april 2007 17:34 To: [email protected] Subject: [magnolia-user] Finding out if page is a root node Hi Anyone know how do I find out if the page is root node but only using Content class? I am thinking of something like this: if (page.getNodeType.equals("rep:root")) { //it is a root node } Is there a better way? Is there a constant for "rep:root" I can use? Thanks ---------------------------------------------------------------- for list details see http://www.magnolia.info/en/developer.html ---------------------------------------------------------------- ---------------------------------------------------------------- for list details see http://www.magnolia.info/en/developer.html ----------------------------------------------------------------
