[Zope-CMF] small problem...How to check whether object is existing or not
Dhanu
dhanunjaya@mindscapecomputing.com
Thu, 28 Jun 2001 15:23:12 +0530
This is a multi-part message in MIME format.
------=_NextPart_000_0007_01C0FFE6.3EF10E00
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hai friends,
Iam new to zope and i dont know how to do most of the simple things.But =
still i am working on cmf and using many products.
I need small help from you experienced guys.
In newsitem ,i am displaying an image ,in addition to article.So,i =
edited the "newsitem_view" and including an image.The image id will be =
in same directory of newsitem with same name with "_image" appended.
So=20
"june/28/news1" newsitem will have a corresponding image =
"june/28/news1_image" posted.
So if a writer has posted an image corresponding to article,then =
everything goes right.Image is embeddded in to newsitem_view and gets =
displayed.
But if writer has posted only article,i have to check this and should =
not include image tag.
I tried this ,but to no success
<dtml-let image=3D"URL+'_image'">
<dtml-if image>
<img src=3D&dtml-URL;_image align=3Dleft alt=3D&dtml-URL;_image >
</dtml-if>
</dtml-let>
If i didnot express clearly forgive me,
Thank you,
regards,
Dhanu
------=_NextPart_000_0007_01C0FFE6.3EF10E00
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 content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hai friends,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Iam new to zope and i dont know how to =
do most of=20
the simple things.But still i am working on cmf and using many=20
products.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>I need small help from you experienced=20
guys.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>In newsitem ,i am displaying an image =
,in addition=20
to article.So,i edited the "newsitem_view" and including an image.The =
image id=20
will be in same directory of newsitem with same name with "_image"=20
appended.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>So </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>"june/28/news1" newsitem will =
have a=20
corresponding image </FONT><FONT face=3DArial=20
size=3D2>"june/28/news1_image" posted.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>So if a writer has posted an image =
corresponding to=20
article,then everything goes right.Image is embeddded in to =
newsitem_view and=20
gets displayed.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>But if writer has posted only article,i =
have to=20
check this and should not include image tag.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>I tried this ,but to no =
success</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2><dtml-let=20
image=3D"URL+'_image'"><BR><dtml-if image><BR><img=20
src=3D&dtml-URL;_image align=3Dleft alt=3D&dtml-URL;_image=20
><BR></dtml-if><BR></dtml-let></FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>If i didnot express clearly forgive=20
me,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Thank you,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>regards,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Dhanu</FONT></DIV></BODY></HTML>
------=_NextPart_000_0007_01C0FFE6.3EF10E00--