[opencms-dev] Re: Adding removing functionality
Saeed Meerkhan
saeed.me at gmail.com
Fri Jul 8 13:21:24 CEST 2005
I want to add a removing functionality to a page that contains replies
> to an article, so that only certain system users can delete a reply
> or more, while this functionality would not be visible to web users.
> How can I do that?
Create a file, restrict its ACL to the certain system users.
| boolean allowedToDeleteReply = true;
| try
| {
| cmsObject.readResource( "/path/to/acl/file" );
| }
| catch( CmsException e )
| {
| allowedToDeleteReply = false;
| }
|
| if( allowedToDeleteReply )
| {
| //
| }
///////////////////////////////////////////////////
Where should I put similar pages that are used only to control content
by system users, and not to be published on the website?
More information about the opencms-dev
mailing list