Try going through the Jump Start<http://docs.farcrycms.org/display/FCDEV50/Book+of+FarCry>course. There have been a lot of changes since FarCry 3.x which is what you seem to be familiar with.
Blair On Tue, May 26, 2009 at 11:48 AM, DevelopCFMax < [email protected]> wrote: > > > 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 -~----------~----~----~----~------~----~------~--~---
