[opencms-dev] How to publish deleted resource with the API

Thomas M�rz thomasmaerz at gmx.de
Mon Oct 11 10:20:36 CEST 2004


"Olli Aro" <olli_aro at yahoo.co.uk> writes:

> Would anyone be able to tell me what the correct procedure is?

| cmsObject.lockResource( userFolder );
| cmsObject.deleteResource( userFolder, I_CmsConstants.C_DELETE_OPTION_DELETE_SIBLINGS );
| cmsObject.unlockResource( userFolder );
| cmsObject.publishResource( userFolder );

Works for me.

HTH,
Thomas




More information about the opencms-dev mailing list