<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns:ns1 = "http://www.exclaimer.co.uk"><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE>@font-face {
font-family: Tahoma;
}
@font-face {
font-family: Verdana;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
COLOR: purple; TEXT-DECORATION: underline
}
P {
FONT-SIZE: 12pt; MARGIN-LEFT: 0in; MARGIN-RIGHT: 0in; FONT-FAMILY: "Times New Roman"
}
SPAN.emailstyle18 {
COLOR: windowtext; FONT-FAMILY: Arial
}
SPAN.emailstyle19 {
COLOR: navy; FONT-FAMILY: Arial
}
SPAN.emailstyle21 {
COLOR: navy; FONT-FAMILY: Arial
}
SPAN.EmailStyle210 {
COLOR: navy; FONT-FAMILY: Arial
}
SPAN.EmailStyle23 {
COLOR: navy; FONT-FAMILY: Arial
}
DIV.Section1 {
page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV><SPAN class=564220916-08122005><FONT face=Arial color=#0000ff size=2>Hi
Jorge,</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=564220916-08122005>here is a better way
to </SPAN>eliminate the publish button<SPAN class=564220916-08122005>
entirely</SPAN>, modify the top_head.jsp
under:<BR><BR>/system/workplace/views/<BR><BR>// CCC Stuff: disable publish
project button: cut the following section in red<BR><% <BR><SPAN
style="COLOR: red">if (wp.isPublishEnabled())
{<BR>out.println(wp.button("../commons/publishproject.jsp", "body",
"publish.png", "button.publish", buttonStyle));<BR>} else
{<BR>out.println(wp.button(null, null, "publish_in.png", "button.publish",
buttonStyle));<BR>}</SPAN><FONT color=#000000> <BR><BR>if
(wp.showSiteSelector()) {<BR><BR>%></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=564220916-08122005><FONT face=Arial color=#0000ff size=2>This
discussion exists also on this thread:</FONT></SPAN></DIV>
<DIV><SPAN class=564220916-08122005></SPAN> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><A
href="http://www.pomegranate.de:9000/cms/forum/viewthread?thread=44">http://www.pomegranate.de:9000/cms/forum/viewthread?thread=44</A></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=564220916-08122005><FONT face=Arial color=#0000ff size=2>Kind
regards,</FONT></SPAN></DIV>
<DIV><SPAN class=564220916-08122005><FONT face=Arial color=#0000ff
size=2>Arash</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B>
opencms-dev-bounces@opencms.org [mailto:opencms-dev-bounces@opencms.org] <B>On
Behalf Of </B>Arash Kaffamanesh<BR><B>Sent:</B> Mittwoch, 16. November 2005
12:12<BR><B>To:</B> 'The OpenCms mailing list'<BR><B>Subject:</B> RE:
[opencms-dev] Disable the "publish project" button<BR><BR></FONT></DIV>
<DIV><SPAN class=493360611-16112005><FONT face=Arial color=#0000ff
size=2>Jorge,</FONT></SPAN></DIV>
<DIV><SPAN class=493360611-16112005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=493360611-16112005><FONT face=Arial color=#0000ff size=2>set
the permission of <!--StartFragment --><FONT face="Times New Roman"
color=#000000 size=3> /system/workplace/commons/publishproject.jsp
to <!--StartFragment --> </FONT></FONT></SPAN></DIV>
<DIV><SPAN class=493360611-16112005><FONT face=Arial color=#0000ff
size=2><FONT face="Times New Roman" color=#000000
size=3></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=493360611-16112005><FONT face=Arial color=#0000ff
size=2><FONT face="Times New Roman" color=#000000 size=3>Internal use
only (check the checkbox!) and deny the users group to have control over
it (optional I think)</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=493360611-16112005></SPAN> </DIV>
<DIV><SPAN class=493360611-16112005><FONT face=Arial color=#0000ff size=2>then
everybody shall get a nice error message by publishing:-)</FONT></SPAN></DIV>
<DIV><SPAN class=493360611-16112005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=493360611-16112005><FONT face=Arial color=#0000ff size=2>I
tested it, the publish project button doesn't disappear, but it
works.</FONT></SPAN></DIV>
<DIV><SPAN class=493360611-16112005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=493360611-16112005><FONT face=Arial color=#0000ff
size=2>Please provide feedback, then I'll post it to our
forum.</FONT></SPAN></DIV>
<DIV><SPAN class=493360611-16112005></SPAN> </DIV>
<DIV><SPAN class=493360611-16112005><FONT face=Arial color=#0000ff
size=2>HTH,</FONT></SPAN></DIV>
<DIV><SPAN class=493360611-16112005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=493360611-16112005><FONT face=Arial color=#0000ff size=2>Kind
Regards,</FONT></SPAN></DIV>
<DIV><SPAN class=493360611-16112005><FONT face=Arial color=#0000ff
size=2>Arash</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B>
opencms-dev-bounces@opencms.org [mailto:opencms-dev-bounces@opencms.org]
<B>On Behalf Of </B>Jorge Gonzalez<BR><B>Sent:</B> Mittwoch, 16. November
2005 11:29<BR><B>To:</B> 'The OpenCms mailing list'<BR><B>Subject:</B>
[opencms-dev] Disable the "publish project" button<BR><BR></FONT></DIV>
<DIV><SPAN class=880412610-16112005><FONT face=Arial color=#0000ff size=2>Hi
list:</FONT></SPAN></DIV>
<DIV><SPAN class=880412610-16112005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=880412610-16112005><FONT face=Arial color=#0000ff size=2>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.</FONT></SPAN></DIV>
<DIV><SPAN class=880412610-16112005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=880412610-16112005><FONT face=Arial color=#0000ff
size=2>Can you help me
?</FONT></SPAN></DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>