[opencms-dev] JSP list unpublished links
Thomas Maerz
thomasmaerz at gmx.de
Thu Mar 17 08:25:49 CET 2005
"NGAWAKA Naomi" <Naomi.Ngawaka at publicworks.qld.gov.au> writes:
> I am trying to create some JSP's that allow users to create,
> edit, delete and publish external links. I am pretty close to finishing
> but now realise
> cmso.getFilesInFolder("/system/galleries/externallinks/test/", true)
> does not return new unpublished links.
I use a Singleton to access offline data.
| cmsObject = OpenCms.initCmsObject( LOGIN_GUEST_USER );
| cmsObject.loginUser( LOGIN_SOME_USER, PASSWORD_SOME_USER );
|
| CmsProject cmsProject = cmsObject.readProject( SOME_PROJECT );
| cmsObject.getRequestContext().setCurrentProject( cmsProject );
|
| cmsObject.getRequestContext().setSiteRoot( SITE_ROOT );
HTH,
Thomas
More information about the opencms-dev
mailing list