Lets say I have a node of type sling:Folder.


Calling

node.isNodeType("nt:folder")

will return true, since sling:Folder extends nt:folder



However

resource.isResourceType("nt:folder")

will return false. I'm assuming since it's attempting to
resolve up the resource heirarchy(?)



My question, is there a Foo utility to determine if a given
resource is of a particular type via the node definition?



TIA.

--
Jason E Bailey

Reply via email to