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

Arash Kaffamanesh arash.kaffamanesh at pomegranate.de
Mon Dec 12 14:13:57 CET 2005


Andreas,

Many thanks, that's realy great. I have to relaunch a small client
website (with 4 editors only) till end of January, do you think that the
6.2.0 branch could be released till then?

Thanks again,

Kind Regards,
Arash

-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Andreas Zahner
Sent: Montag, 12. Dezember 2005 11:03
To: 'The OpenCms mailing list'
Subject: RE: [opencms-dev] Disable the "publish project" button


Hi Jorge & Arash, 

the development branch of OpenCms (6.1.x) features a new (optional)
configuration node in the opencms-workplace.xml. Take a look at the node
sequence:

<workplace-generaloptions>
	...
	<publishbuttonappearance>always</publishbuttonappearance>
</workplace-generaloptions>

Possible values are [always|auto|never].
- always (default) means that the button is always shown, depending on
the current users permissions active or inactive.
- auto: the button is only available if the current user has permissions
to publish the current project.
- never: the button is never shown.

Regards,

Andreas Zahner
Alkacon Software - The OpenCms Experts
http://www.alkacon.com 

-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Arash Kaffamanesh
Sent: Thursday, December 08, 2005 5:14 PM
To: 'The OpenCms mailing list'
Subject: RE: [opencms-dev] Disable the "publish project" button

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 ?




_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please
visit http://mail.opencms.org/mailman/listinfo/opencms-dev




More information about the opencms-dev mailing list