...
- The main include: _contact.cfm (consisting primarily of a switch statement to toggle between the various views)
- the CFC that processes the form: contact.cfc (can be stored wherever you prefer to keep CFCs)
- a folder for related files:
-contact (folder)
--contactForm.cfm (the form display)
--confirmMessage.cfm (the confirmation message display page/html)
Making included objects available to Farcry
To be available in Farcry, the include needs to be placed in the farcry_<application name>/includedObj directory. The include must be directly within this folder so that Farcry can find it.
Using included objects in Farcry
- Once the file is in the proper place, simply log in to Farcry admin and go to the Site tab.
- Within your site tree, select the navigation node where you want the include to appear, and create a new include object (right-click and choose Create > Include from the context menu).
- In the Create Include form you will see a select menu that shows all the files in the includedObj folder. Select your include file from the list.
- Give the include object a title, teaser and select a Display Method for it. Send it live or preview as desired.
...