Re: Quickform Renderer
| From: | Markus Wolff | Date: | Sat, 05 Apr 2003 19:38:13 +0000 |
| Subject: | Re: Quickform Renderer | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-14929@lists.php.net to get a copy of this message | ||
Bertrand Mansion wrote:
You can have different styles of qf_element blocks with different rendering and then assign a block to an element. With that and the help of css, there are no limits in the way you present your form.Hi Bertrand, Can I also group some elements in kind of virtual group, for which a template block can be assigned? That´s what I did in my FormProcessor class for OOH_Forms and it can be a nice feature for some occasions: You have a form that can represent different kinds of objects, that share some form fields and can also have specific form fields depending on the object type. You define only one template which contains all possible form fields, but the optional ones are placed withing blocks that represent a virtual group. Result: All the blocks that are not used get kicked out of the template by ITX, resulting in a display of only the proper form elements for the current object type - and for that you only have one easily maintainable template. Regards, Markus