| Seth Price 2005-12-15, 7:56 am |
| Short answer: No.
Long answer: Well, I just happened to have this problem yesterday,
and I've been working on adding support for sub-groups. I'll
contribute changes back if there are people interested, but so far
they contain changes for other things too, like the chars "[]" aren't
allowed in the id or name attributes so I've replaced them with ":".
~Seth
On Dec 14, 2005, at 2:23 PM, James Carr wrote:
> I am building a very complex multi page form and I am curious if there
> is some kind of way to add a group to a group?
>
> Basically, I have 4 subsections that are exactly identical and would
> like to put this in a foreach loop (I am using smarty for rendering).
> It would be ideal if I could just add the elements to a group, then
> add it to another. Basically something like this would be an input
> name (using the normal php convention for form fields being converted
> to array index):
>
> name="asset[0][type]"
>
> so I could just do something like:
> {foreach from=$assets item=asset}
> {$asset.name.label}{$asset.name.html}<br/>
> {$asset.type.label}{$asset.type.html}<br/>
> .. and so on ...
> {/foreach}
>
> At worst, I'll just copy&paste for now. :(
>
> Thanks,
> JC
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
|