Tried that, it doesn't work (sets every option as selected).
  ----- Original Message ----- 
  From: Daniel Lima 
  To: Matt Marron ; Template Attribute Language for PHP 
  Sent: Monday, April 27, 2009 5:29 PM
  Subject: Re: [PHPTAL] Selected attribute in select list


  The way you USA should work, but try this:

  <tal:block tal:repeat="c categories">
       <option tal:attributes="value c/id;selected php: f.categoryid == c.id" 
tal:content="c/category"></option>
  </tal:block>

  Daniel Lima
  Web Developer
_______________________________________________
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal

Reply via email to