Re: option selected

"Simon McCaughey" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.petal
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.