[Zope-CMF] programmatically publish content (was: Re: Advice please ....)
Josef Albert Meile
jmeile@hotmail.com
Sun, 18 Nov 2001 16:01:52 +0100
This is a multi-part message in MIME format.
------=_NextPart_000_0010_01C1704A.57241D80
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Try the following:
<dtml-call "ob.content_status_modify('publish')">
To assure that it will work, you have to give the "Review portal =
content" to the users that are authorized to acces this feature.
It has worked for me.
Regards,
Josef.
------=_NextPart_000_0010_01C1704A.57241D80
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Try the following:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> <dtml-call=20
"ob.content_status_modify('publish')"></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>To assure that it will work, you have =
to give the=20
"Review portal content" to the users that are authorized to acces this=20
feature.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>It has worked for me.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Regards,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Josef.</FONT></DIV></BODY></HTML>
------=_NextPart_000_0010_01C1704A.57241D80--