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 ==" 

  Daniel Lima
  Web Developer
PHPTAL mailing list

Reply via email to