Blair,

That is exactly what I am looking for Thanx!

Some more questions if you don't mind.

1. On one content type, we may need to do some manipulation of data
before being saved, where in your example would I include that logic?

2. On several content types, we will need to execute some external
code after being saved, where in your example would I include that
logic?

I assume I can put this logic inside <ft:ProcessForm /> but not sure
where.

Thanx Again.

On Aug 1, 12:26 am, "Blair McKenzie" <[EMAIL PROTECTED]> wrote:
> The short answer is yes.
>
> All of the form tool functionality is encapsulated in tags. You can add the
> formtool tag library to an include or rule:
> <cfimport taglib="/farcry/core/tags/formtools/" prefix="ft" />
>
> You can get more information about using the form tools' tags
> here<http://docs.farcrycms.org:8080/confluence/display/FCDEV40/Form+Tool+U...>and
> here<http://docs.farcrycms.org:8080/confluence/display/FCDEV40/Form+Tool+T...>on
> the wiki. The gist is:
>
> <!--- run enclosed code when this button is pressed, then save the type --->
> <!--- just this tag by itself will handle validation and saving --->
> <ft:processForm action="Submit button label">
> <!--- use this tag to access the new values --->
> <ft:processformobjects typename="yourType">
> <cfif NOT len(stproperties.title)>
> <!--- break => don't save --->
> <ft:break />
> </cfif>
> </ft:processformobjects>
> </ft:processForm>
>
> <!--- put the enclosed code inside a form tools form --->
> <ft:form>
>    <!--- generate the edit form --->
>    <ft:object typename="yourType" lfields="list,of,fields,you,want,editable"
> format="edit" />
>
>    <!--- create a submit button --->
>    <ft:farcrybutton value="Submit button label" />
> </ft:form>
>
> Hope this helps.
>
> Cheers
> Blair
>
> On 8/1/07, Scott Stroz <[EMAIL PROTECTED]> wrote:
>
>
>
> > I am working on a site where we will have a fair amount of custom
> > content types.
>
> > Some of these content types will need input from visitors of the site,
> > such as registrations for events.
>
> > What is the easiest/best way to handle this?
>
> > Can I use form tools for this?
>
> > Is there any way add additional functionality can be added to the
> > processing (such as firing off e-mails, etc) if form tools can be
> > used?
>
> > Thanx in advance.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"farcry-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/farcry-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to