Re: Re: QF multiple rows of elements
| From: | Daniel Kopp | Date: | Thu, 22 Jul 2004 08:36:41 +0000 |
| Subject: | Re: Re: QF multiple rows of elements | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-13795@lists.php.net to get a copy of this message | ||
Hi!
Bertrand Mansion wrote:
> <nix@daniu.de> wrote :
>
>> Hi!
>>
>> Bertrand Mansion wrote:
>>
>>> If your form is built dynamically (ie. elements are added to it
>>> in a non fixed way, as this is the case here because he is using
>>> a loop), you should use the dynamic renderers.
>>
>> well ... of course you are right but I think if you have a big
>> project and you need the dynamic once or very rarely ... this
>> might be a way to do it ... knowing that it should actually not
>> be done like that ... (as for me: I was basically too lazy to go
>> into dynamic renderers)
>
> The dynamic renderers are for the lazy ones :)
>
> The reason is that once the template is done for one form, you
> just re-use everywhere in your site. If you were really lazy, you
> would have tried the dynamic renderers.
OK - now I finally did it ... kind of.
I am however not really as excited as you supposed I should be.
In my project the forms come from a designer and all have a unique
design. Of course not saying that every page looks different but the
code might. The output for each element of the Form is definitely
different. So - right now to me it seems that I would need to define
a block for each element to get this done.
That makes it almost impossible to "design" the whole thing with a
wysiwyg-tool like Dreamweaver.
Or can I still just use a normal html Form and exchange the form
elements by tags - like {formname_elementname_html}?
(as for the labels: I never need it because this is way too much
"design" in my case - so we use plain html for that?
Another - not so important point is that my renderer class is always
the same with ITStatic - I just give it a template path and a
template filename, that's - so far - the only difference. With
ITDynamic I would have to assign a name to each group (in case they
need to look different)
The group handling is not really clear to me so far. If I need a
dynamic group of elements - like articles - I just add the elements
in the form to a group, give them names like: article1, article2 etc.
and get them back as such? So it must be a group or can I also loop
in any other way through elements?
Did I miss anything?
thanks
Daniel