On Nov 18, 4:34 pm, AJ Mercer <[email protected]> wrote:
> In the farcry 5.3 rewrite, are formtools getting overhauled?

Yes.

> I have a case where I wanted a different display for array checkbox, so
> copied array.cfc to my plugin and tweaked.
>
> I have now just discovered the the two versions of array.cfc are different -
> core has been updated.
>
> So I was thinking that it would be neat if formtools used webskins too.
> So you could override those in project/plugin
> or create new displays

On the surface it seems like a good feature to allow folks to alter
the way an existing formtool is rendered but there are problems.

Formtool views are special in that they:
- require very specific naming conventions for elements, ids, etc
- adhere to a standard that allows them to be stacked and grouped with
other formtools
- must marry up exactly with their validation method
- incorporate code that may make references to private functions
within the formtool

Allowing people to build their own edit handlers for existing
formtools makes it very difficult to change the behaviour of a
formtool and still guarantee that it will work.  For that reason i
don't think its worth providing formtool views that can be overridden.

Of course, you can create your own, complete formtool components and
add that to a plugin or project.

A case in point is the current overhaul of formtools in 5.3 to
standardise everything on uni-form and jQuery/jQueryUI. You will be
able to upgrade without any changes but all the views have changed
dramatically.  Moving forward, formtool developers should have a very
well defined set of standards for creating new formtools.

-- geoff
http://www.daemon.com.au/


-- 
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

Reply via email to