[opencms-dev] Disable the "publish project" button

Arash Kaffamanesh arash.kaffamanesh at pomegranate.de
Thu Dec 8 17:13:33 CET 2005


Hi Jorge,
 
here is a better way to eliminate the publish button entirely, modify
the top_head.jsp under:

/system/workplace/views/

// CCC Stuff: disable publish project button: cut the following section
in red
<% 
if (wp.isPublishEnabled()) {
out.println(wp.button("../commons/publishproject.jsp", "body",
"publish.png", "button.publish", buttonStyle));
} else {
out.println(wp.button(null, null, "publish_in.png", "button.publish",
buttonStyle));
} 

if (wp.showSiteSelector()) {

%>
 
This discussion exists also on this thread:
 
http://www.pomegranate.de:9000/cms/forum/viewthread?thread=44
 
Kind regards,
Arash

-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Arash Kaffamanesh
Sent: Mittwoch, 16. November 2005 12:12
To: 'The OpenCms mailing list'
Subject: RE: [opencms-dev] Disable the "publish project" button


Jorge,
 
set the permission of  /system/workplace/commons/publishproject.jsp  to

 
Internal use only  (check the checkbox!) and deny the users group to
have control over it (optional I think)
 
then everybody shall get a nice error message by publishing:-)
 
I tested it, the publish project button doesn't disappear, but it works.
 
Please provide feedback, then I'll post it to our forum.
 
HTH,
 
Kind Regards,
Arash

-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Jorge Gonzalez
Sent: Mittwoch, 16. November 2005 11:29
To: 'The OpenCms mailing list'
Subject: [opencms-dev] Disable the "publish project" button


Hi list:
 
I need to disable the malicious "publish project" button, so the project
admins will not publish all the stuff, and destroy my spare time from
now to jan 2017.
 
Can you help me ?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20051208/4718502f/attachment.htm>


More information about the opencms-dev mailing list