|
Hi Vincent, Use subforms and set decorators on the subforms and their elements as you see fit. You can't use displayGroups with subforms. Each record will typically go into one subform and the desired structure (tags etc.) is accomplished with decorators. Alternatively you can use a ViewScript ViewHelper for your subform, please look in the reference manual for that. That way, you do not need to figure out how the decorators work. Bart McLeod Vincent - D. Ertner schreef: Hi folks, I have a bad show stopper in my project - hopefully one of you could point me into the right direction.I need to have a form, which has to look like this Record 1 -------- Field1 Field2 Field3 Tag1 Tag2 Link1 Link2 Record 2 -------- Field1 Field2 Field3 Tag1 Tag2 Link1 Link2 The fields are taken from a row, the tags from an intersection and the links are fed with the id of the row (for update, delete). The fields, the tags, the links, each record and all records must be surrounded by appropriate div tags. I already have the code to iteratively create all the data and render the single elements - that's not the problem. :)) First approach -------------- I created elements for each and everything and added some of the elements to separate display groups. Result: All the inner elements are rendered over and over again - which seemed quite logical to me afterwards. Second approach --------------- I thought that building display groups which contain display groups might do the trick. But it seems that only elements are regarded as valid input for display groups (at least that's what I read in the addDisplayGroup code ... I guess it is possible to realize my desired output - the only question is: how? :))) Thx a lot in advance ... --
|
- [fw-general] Nested Zend_Form Vincent - D. Ertner
- Re: [fw-general] Nested Zend_Form Bart McLeod
- Re: [fw-general] Nested Zend_Form Matthew Weier O'Phinney
- Re: [fw-general] Nested Zend_Form Bart McLeod

