Re: Quickform Renderer
| From: | Bertrand Mansion | Date: | Sat, 05 Apr 2003 20:04:51 +0000 |
| Subject: | Re: Quickform Renderer | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-14930@lists.php.net to get a copy of this message | ||
<wolff@21st.de> wrote :
> 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.
Hi Markus,
This is exactly what the current ITX renderer written by Alexey Borzov does..
We are going to write a little tutorial very soon so people can test it more
easily. In comparison, my renderer is totally fixed and uses only
placeholders.
I'll let you know when all this will be ready.
Bertrand Mansion
Mamasam