FYI I got a HINT saying : "Change the formbuilder stash_name". This is default set to form ( identical to the obj_name.) When I changed this to 'fb' insteadof 'form' I could acces the field the HASH way like:
[% field = fb.field %] <td>[% field.somename.field %]</td><td>[% field.somename.field %]</td> so I got a few steps along the way but still quit difficult to find out what to use and where to use it. regards Peter -----Oprindelig meddelelse----- Fra: mike [mailto:[EMAIL PROTECTED] Sendt: 8. februar 2008 08:40 Til: Peter Sørensen Emne: Re: [Templates] Template Toolkit formbuilder and catalyst (maybe off topic ) On Jan 24, 2008 8:21 AM, Peter Sørensen <[EMAIL PROTECTED]> wrote: > Hi, > > This might be off topic but I try. > > I am using TT along with formbuilder and catalyst. > According to the docs it is possible to make formbuilder return an > array of either hashes or arrays, containing all info connected with > a FORMS fields. i'd recommend that you contact juan camacho directly: http://search.cpan.org/~jcamacho/Catalyst-Controller-FormBuilder-0.04/ i'm sorry i can't be of more help. the lack of response may be a bit indicative that not many people use CGI::FormBuilder with template toolkit. i know i am one of them. if you want to customize your own layout, why not write the markup yourself and use Catalyst::Plugin::FormValidator: http://search.cpan.org/~mramberg/Catalyst-Plugin-FormValidator-0.02/ when the template is sent back to the client, i simply fill in the fields by using: value="[% c.req.param('some_field') %]" this seems to work well enough for me. > whatever I do I get an array of hashes. I can print OK from this but I > want to customize to my own layout and not what the formbuilder give > me as standard. you should know that any dot-operator functions that template toolkit performs are done in a LIST context. this aspect of template toolkit must be understood. it's not a bug, it's a feature. but it's a feature that can have you pulling your hair out at times. -mike _______________________________________________ templates mailing list templates@template-toolkit.org http://mail.template-toolkit.org/mailman/listinfo/templates