[opencms-dev] how do i find out resource types ofnavigationelements?

Thomas M�rz thomasmaerz at gmx.de
Tue Sep 7 21:20:04 CEST 2004


Millo Magnocavallo <millo_magno at yahoo.com> writes:

> thanks for that, but i still don't get how to convert a
> CmsJspNavElement into an object.

| String resourceName = navElement.getResourceName();
| CmsResource resource = cmsObject.readFileHeader( resourceName );
| int type = resource.getType();

HTH,
Thomas




More information about the opencms-dev mailing list