[Zope] if comparsion problem

Ze Octavio joc@hiper.com.br
Fri, 25 Feb 2000 15:36:04 -0300


Hi Oliver,


   I think that you have to try:

<dtml-if "localid == _['id']">

or

<dtml-if "localid == id()">

Best regards,

-- 
Ze Octavio
--
Hiperlógica <http://hiper.com.br>
Automação de web-sites | Web-site automation
São Paulo | Brasil | Fone: +55-11-8168067

Oliver Wrede wrote:
> 
> I am using this simple code to make a little navigation bar
> 
> <dtml-call "REQUEST.set('localid',id)">
> 
> <dtml-in "PARENTS[0].objectValues(['DTML Document'])">
>    <dtml-unless "title == ''">
>       <dtml-if "localid == id">
>          <p><b><dtml-var title_or_id></b></p>
>       <dtml-else>
>          <p><a href="<dtml-var id>"><dtml-var title_or_id></a></p>
>       </dtml-if>
>    </dtml-unless>
> </dtml-in>
> 
> It is intended that the title of the current page is bolded instead of
> linked. Unfortuneatly the <dtml-if "localid == id"> does never seem to
> match!
> 
> When I insert a control output like this:
> 
>    <p>'<dtml-var id>':'<dtml-var localid>'</p>
> 
> I can _see_ that there should be a match! I get two identical strings.
> 
> So what did I miss?
> 
> Oliver
> 
> .. Oliver Wrede
> .. owrede@khm.de
> 
> .. Academy of Media Arts, Cologne
> .. Peter-Welter-Platz 2 . 50676 Koeln, Germany
> .. http://www.khm.de
> .. ICQ# 6580315
> .. PGP 6.0 Fingerprint:
> .. 922C FFA2 9A07 5B8E CB2A  10A2 C370 6A62 2232 196C
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> 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 )