[Zope] Re: Still Having Problems With DTML

Maik Jablonski maik.jablonski@uni-bielefeld.de
Wed, 15 Jan 2003 19:52:28 +0100


beno wrote:
> This is becoming far_more_complex than I anticipated. I would love to be 
> able to do something like this:
> 

I don't know what you want to do, but please try it this way:

<dtml-let lang="REQUEST.get('HTTP_ACCEPT_LANGUAGE','en-us')">
   <dtml-in objectValues>
     <dtml-let langShort="lang[2:]">
      <dtml-var langShort>
      <dtml-if expr="getId()==langShort">
       <dtml-var sequence-item>
      </dtml-if>
     </dtml-let>
   </dtml-in>
</dtml-let>

-mj