Thanks for pointing this out!

I only meant you can't use subforms in displaygroups. (they other way round that is).

Bart

Matthew Weier O'Phinney schreef:
-- Bart McLeod <[EMAIL PROTECTED]> wrote
(on Wednesday, 29 October 2008, 11:21 PM +0100):
  
Use subforms and set decorators on the subforms and their elements as  
you see fit. You can't use displayGroups with subforms.
    

Actually, you *can* use DisplayGroups in 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 ...

  
      
-- 
Bart McLeod
*Space Web Internet Team*
Middenlaan 47
6865 VN Heveadorp
The Netherlands
*t* +31(0)26 3392952
*m* 06 51 51 89 71
[EMAIL PROTECTED] [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
www.spaceweb.nl <http://www.spaceweb.nl> 	zce logo zce PHP 5 logo

/Bart McLeod is a Zend Certified Engineer./

Click to verify! <http://www.zend.com/zce.php?c=ZEND004591&r=218204904>

	

    

  

--
Bart McLeod
Space Web Internet Team
Middenlaan 47
6865 VN Heveadorp
The Netherlands
t +31(0)26 3392952
m 06 51 51 89 71
@ [EMAIL PROTECTED]
www.spaceweb.nl
zce logo zce PHP 5 logo

Bart McLeod is a Zend Certified Engineer.

Click to verify!

Reply via email to