[opencms-dev] how to get CmsResource object for current page?

Thomas Maerz thomasmaerz at gmx.de
Mon Jul 18 21:59:17 CEST 2005


Joe Desbonnet <jdesbonnet at gmail.com> writes:

> I can get a CmsObject and a CmsRequestContext for the current page,
> but I cannot see any easy way to convert that into an instance of
> CmsResource.


,----[ CmsObject ]
| public CmsResource readResource(String resourcename) throws CmsException {
| 
|     return readResource(resourcename, CmsResourceFilter.DEFAULT);
| }
`----


Regards,
Thomas




More information about the opencms-dev mailing list