I have written a custom type in the "Content" area of the Webtop.

Basically this is a duplication of the news type, with some
modifications, in that I have added a few more fields.

As part of that i'd like to include a CFFORM (code below) and collect
the data from the form and insert into a database.

I recall in an earlier version of Farcry you could use PLP's to define
this process, however i'm now able to find something similiar that I
can apply to custom content types.

Can anyone help guide me on how to include this form into a custom
content type.


<cfset lstStates = "NSW,QLD,VIC,SA,NT,WA,TAS">
<cfset lstChannels = "Channel_1,Channel_2,Channel_3">

<cfoutput>
        <cfform format="flash" width="469" action="target.cfm"
skin="haloblue">
                <cfformgroup type="tabnavigator">

                        <cfformgroup type="page" label="National"><!--- start 
national
based data --->
                                <cfinput name="NAT_StateDate" type="datefield" 
mask="dd/mm/yyyy"
label="State Date" width="180" tooltip="Publish Start Date" />
                                <cfinput name="NAT_EndDate" type="datefield" 
mask="dd/mm/yyyy"
label="End Date" width="180" tooltip="Publish End Date" />
                                <cfloop list="#lstChannels#" index="stCH">
                                        <cfinput name="NAT_#stCH#_Channel" 
type="checkbox" label="#replace
(stCH,'_',' ','all')#" tooltip="Applicable Channel" />
                                </cfloop>
                        </cfformgroup><!--- end national based data --->

                        <cfloop list="#lstStates#" index="stLI"><!--- start 
state based
data --->
                        <cfformgroup type="page" label="#stLi#">
                                <cfinput name="#stLi#_StateDate" 
type="datefield" mask="dd/mm/
yyyy" label="State Date" width="180" tooltip="Publish Start Date" />
                                <cfinput name="#stLi#_EndDate" type="datefield" 
mask="dd/mm/yyyy"
label="End Date" width="180" tooltip="Publish End Date" />
                                <cfloop list="#lstChannels#" index="stCH">
                                        <cfinput name="#stLi#_#stCH#_Channel" 
type="checkbox"
label="#replace(stCH,'_',' ','all')#" tooltip="Applicable Channel" />
                                </cfloop>
                        </cfformgroup>
                        </cfloop><!--- end state based data --->
                </cfformgroup>
        </cfform>
</cfoutput>


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