You may find that you can copy the tags and replace the parts that refer to a type. The basic idea is that ft:form and ft:object will generate a form with hidden "typename" information, so that on post ft:processform, ft:processformobjects, and ft:serversidevalidation can then associate the various posted fields back to their metadata. At that point the server knows how to validate (is that field a date, is this required field provided) and process (upload the file, resize the image) the posted data. The tags are further complicated because they need to support multiple self-posting forms on one page, multiple objects and/or content types in one form, and potentially feed error messages back into them. After all of that is pared away you basically have a loop that calls the validate() function in each formtool followed by a setData.
On Fri, Jul 23, 2010 at 9:37 PM, Chris Kent <[email protected]> wrote: > Thanks Blair, > > I do have a hack to make this work for my plugin to allow admin user > created forms, questionnaires and data capture forms to use the > formtools. > > I will look into calling the edit functions to see if it does help, > but I guess then I would need to create the form validation/control > code instead of using all the formtools goodness. > > Chris. > > > On 23 July, 06:33, Blair McKenzie <[email protected]> wrote: > > I believe the output could be generated by directly calling the edit > > function, but I doubt the the formtool tags would still work without the > > context of a type (or form). > > > > Blair > > > > > > > > On Fri, Jul 23, 2010 at 12:29 AM, Chris Kent <[email protected]> wrote: > > > I have developed (almost completed) a Form Processor that allows forms > > > to be defined/created within the admin and then placed on the website > > > within a publishing rule. > > > > > But one area that I would like to change/improve is the restriction > > > that formtools fields need to exist in the content type, this does not > > > work well with user defined forms. > > > > > I think the answer to this question is no – but can the formtools be > > > used without referencing properties within a content type? > > > > > Chris. > > > > > -- > > > You received this message cos you are subscribed to "farcry-dev" Google > > > group. > > > To post, email: [email protected] > > > To unsubscribe, email: > > > [email protected]<farcry-dev%[email protected]> > <farcry-dev%2bunsubscr...@googlegrou ps.com> > > > For more options:http://groups.google.com/group/farcry-dev > > > -------------------------------- > > > Follow us on Twitter:http://twitter.com/farcry > > -- > You received this message cos you are subscribed to "farcry-dev" Google > group. > To post, email: [email protected] > To unsubscribe, email: > [email protected]<farcry-dev%[email protected]> > For more options: http://groups.google.com/group/farcry-dev > -------------------------------- > Follow us on Twitter: http://twitter.com/farcry > -- You received this message cos you are subscribed to "farcry-dev" Google group. To post, email: [email protected] To unsubscribe, email: [email protected] For more options: http://groups.google.com/group/farcry-dev -------------------------------- Follow us on Twitter: http://twitter.com/farcry
