[Petal] option selected
Simon McCaughey
simonmcc at nortelnetworks.com
Mon Dec 20 10:38:32 GMT 2004
Re: [Petal] option selectedFolks
Thanks for these solutions.
I ended up using the fixed version of the first bit of my code,
<option
tal:repeat="cat cat_list"
tal:attributes="selected if: eq: $cat/id $item/cat/id then: string:true
else: nothing"
value="$cat/id"
petal:content="cat/name"
>Category</option>
I think this is a tidy solution to this problem, and it means I can keep it
all in the template
Thanks everyone
Is there anywhere this information is posted - wiki etc..? This would be
useful. Any pointers to good tutroials, there must be so much more I could
do, but don't know how...?
Regards
Simon
More information about the Petal
mailing list