Hi Kornel,

> -----Original Message-----
> Sent: 18 June 2009 10:13
> 
> In PHPTAL empty array evaluates to false, so this works:
> 
> <p tal:condition="not:titles">No titles found.</p> <ul 
> tal:condition="titles"> ...
> 
> 
> If you want an empty list item:
> 
>       <ul>
>         <li tal:condition="not:titles">No titles found</li>
>         <li tal:repeat="item titles">
>           <a tal:content="item/title" tal:attributes="href 
> item/ href">title is missing</a>
>         </li>
>       </ul>

This empty list item is just what I wanted. It works just fine.

Many thanks (and also to Reza Sanaie for his suggestion),

Chris


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

Reply via email to