I'm trying to compare two page titles, using this code:

<dtml-call "REQUEST.set('my_title',get_page_title)">
<dtml-in "PARENTS[1].objectValues(['Folder'])">
  &dtml-my_title; : &dtml-get_page_title
  <dtml-if "my_title!=get_page_title">
      <dtml-var title_or_id>
  </dtml-if>
</dtml-in>

Now I can see on the page that my_title and get_page_title are the same.  I have also 
tried comparing _.str(my_title) and _.str(get_page_title) just to make sure I was 
comparing strings.  But the if clause always evaluates true.  Any ideas?

cheers,
seb.

_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to