[PHPTAL] embedded repeats
Kris Quigley
kris.quigley at gmail.com
Thu Apr 27 19:29:43 CEST 2006
Thanks, i had got it working just before you posted, thanks.
Yeah the problem was the | null, i usualy use a |null on other things
like tal:attributes, they work just fine, its just that if you use it
on a repeat, it goes crazy, haha. (i found in the past the |nothing
like zope just didnt do anything for me, so i tried |null and it
seemed to work, so ive just kinda stuck to it)
Thanks for the help
On 25/04/06, Joshua Paine <lists at fairsky.us> wrote:
> This kind of thing can work just fine--I do it often. I think the
> problem is with your something|null contruction, as null isn't a keyword
> in PHPTAL, and I don't think you can chain expressions in tal:repeat anyway.
>
> Try this instead:
> <ul>
> <li tal:repeat="item setup"><a tal:attributes="href
> item/link_location; id item/class | default"
> tal:content="item/link_name" tal:condition="item/hidden"></a>
> <ul tal:condition="item/setup2 | nothing">
> <li tal:repeat="item2 item/setup2"><a tal:attributes="href
> item2/link_location; id item2/class | default"
> tal:content="item2/link_name" tal:condition="item2/hidden"></a></li>
> </ul>
> </ul>
>
> --
> Joshua Paine
> Chief Tower Builder
> LetterBlock Software
> http://letterblock.com/
>
> _______________________________________________
> PHPTAL mailing list
> PHPTAL at lists.motion-twin.com
> http://lists.motion-twin.com/mailman/listinfo/phptal
>
More information about the PHPTAL
mailing list