[Zope] dtml-if

michael michael at tropolinux.com
Sun Aug 28 22:19:42 EDT 2005


Thanks for your reply, that is half way there, I want to compare two 
variables though. where as 'my page' is constant, and hard coded in.

someone's gotta know :-)

mike

Greg Fischer wrote:

>I have never been able to do that either and always wondered how to do
>it.  However I have a workaround that I use frequently.  I just use
>the title instead, which works perfectly.
>
><dtml-if "title == 'My Page' ">This one!</dtml-if>
>
>Greg
>
>
>On 8/28/05, michael <michael at tropolinux.com> wrote:
>  
>
>>What am I doing wrong here?
>>
>><dtml-var last> -- this prints out the variable sent from last
>>(referring) page fine
>><dtml-var id> -- this prints out the id of the current item fine
>>
>>
>><dtml-if "id == last">  this one!  </dtml-if>
>>
>>i want this to output "this one!" when the current item is the one
>>requested by the last page but they are never seen as == even when the
>>two dtml-var are the same
>>
>>they are never equal!
>>
>>
>>thanks,
>>mike
>>
>>
>>_______________________________________________
>>Zope maillist  -  Zope at zope.org
>>http://mail.zope.org/mailman/listinfo/zope
>>**   No cross posts or HTML encoding!  **
>>(Related lists -
>> http://mail.zope.org/mailman/listinfo/zope-announce
>> http://mail.zope.org/mailman/listinfo/zope-dev )
>>
>>    
>>
>
>
>  
>



More information about the Zope mailing list