[ZDP] Re: [Zope] string find

Maik Roeder roeder@berg.net
Sun, 07 May 2000 11:18:37 +0200


Hi !

Markus Hochreiter wrote:
> How can I find a string in a dtml-var inside a <dtml-in> sequence?
> I only want to show names including 'fam'. I don't want to use the ZCatalog
> for this search!
> 
> I want to know how I can perform a string compair.
> 
> <dtml-in Catalog>
>     <dtml-if "_.string.find('fam',<dtml-var name>"> this is not correct,
> why?
>        <dtml-var name>
>    </dtml-if>
> </dtml-in>

Nesting dtml tags is not allowed.

As a Zope User you may want to go to the ZDP Portals

http://zdp.zope.org/portals

There to the Users Portal:

http://zdp.zope.org/portals/users/dtml/

There to the Subject of DTML

http://zdp.zope.org/portals/users/dtml/

There you will find many Topics and also some pointers
to the main resources on DTML. Make sure you
have read the DTML Reference that is pointed to 
on this page:

http://zdp.zope.org/portals/users/dtml/


Greetings,

Maik Röder