Here are revised patch and module if that is okay, with
simplified instructions -- fell into place nicely.
I was wrong about the template param in the source file, it
seems to work fine, and then you can have a separate template
just for the form, which works like normal FB-prepared
templates. I was just confused by the template file path. I
added documentation.
Mark
On Tue, 17 Oct 2006, Mark Hedges wrote:
> From: Mark Hedges <hedges@xxxxxxxx>
> To: fbusers@xxxxxxxxxxxxxxx
> Date: Tue, 17 Oct 2006 10:57:59 -0700 (PDT)
> Subject: catalyst plugin action param
>
>
> Some of the work I did with multiple forms would be easier if
> the 'action' parameter in the source file worked. Would that be
> okay to implement, if the param is filled out?
>
> That way, the global search form always posts to /searchform,
> regardless of where the viewer filled it in, and generic forms
> don't get detected in end(). Catalyst wouldn't care, and the
> real URL would show for the result.
>
> The source file for /books/edit would not have an action, so
> that would continue to use the current behavior by default.
>
> Hrmm, BTW if I want to use a separate TT2 template for the
> generic form, I do have to assign that by hand in the end(),
> because the object sent for Builtin render to the Catalyst
> template is the real CGI::FormBuilder object, not the prepared
> fb template object. Okay to implement (fix?) the template
> attribute from the source file?
>
> Mark
>
Catalyst_Plugin_FormBuilder_multipleforms.diff
Description: Catalyst_Plugin_FormBuilder_multipleforms.diff
_______________________________________________
FBusers mailing list
FBusers@xxxxxxxxxxxxxxx
http://www.formbuilder.org/mailman/listinfo/fbusers
|