[Solar-talk] Hieriarchal Selects

Paul M Jones pmjones at solarphp.com
Mon Dec 3 20:43:47 CST 2007


On 03 Dec 2007, at 21:13, Rodrigo Moraes wrote:

> On Dec 4, 2007 12:06 AM, Paul M Jones wrote:
>>> Is there some way to do hierarchal selects with solar forms? How do
>>> you do them? A good example would be helpful.
>>>
>> Sorry about the delay.  Do you mean something like <optgroup> values
>> within the select options?  It's not currently supported by the
>> formSelect() helper, but I can see how we could add that in.  (Idea
>> would be to have it see if the option display is itself an array, and
>> use the key as the optgroup label instead of the option value ...  
>> hope
>> that makes sense.)
>
> ah! if it is about optgroups, there's a hack here that allows them:
>
> http://solarphp.com/trac/ticket/19

Dude, sweet!!!  I knew the idea wasn't mine, but couldn't remember  
where it came from.  Nicely done sir!

So I guess I need to commit that one too now, eh?  ;-)


-- pmj


More information about the Solar-talk mailing list