logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: [FormBuilder] name template variable for Catalyst::Plugin::FormBuilder: msg#00020

Subject: Re: [FormBuilder] name template variable for Catalyst::Plugin::FormBuilder
> Uh, duh, how about except for the fact that it didn't work.
> 
> Here is a more clued attempt below.  It also seems reverse-compatible.

Augh, except that I don't get Catalyst.

Basically, I want to set up a root controller with

    auto : Form('searchform') { }

that will set up a named search form regardless of the action.

But in specific controllers I want to create other forms using 
the attribute.

So the final template should have them named in a hash.

Trouble is, $c->action is always the real action.  So auto's 
call to the FB plugin only shows the attributes of the real 
action.

Hey, if you do this 

    sub myaction : Local Form(specificform,generalform) {
    }

attributes can be split (they don't need quoting? weird.)

So we can loop through from general to specific, set up the 
forms with conf files, get a hash for forms and the most 
specific one is still named 'form' for the template.

I'm working on that, more later.

Mark
_______________________________________________
FBusers mailing list
FBusers@xxxxxxxxxxxxxxx
http://www.formbuilder.org/mailman/listinfo/fbusers



<Prev in Thread] Current Thread [Next in Thread>