David, I would suggest you use the integrated dmProfile type. Very few of the fields are required, and you can easily add additional fields by extending the type (e.g. aWatchedPages[]).. Additionally, you later have the option of adding in the functionality of dmUser, should authentication for some/all users become necessary in the future.
As far as integrating into the front end, probably creating a dmInclude page w/your form is the way to go. Submitting the form (to itself) instantiates your cfcDmProfile, copies the user data from the form scope to an empty structure, and then calls cfcDmProfile.setData( myStruct ). Watching a page is similar. If you extend dmProfile to have a new array property, aWatchedPages, then you can simply instantiate cfcDmProfile, retrieve the data from the database (getData()), add the page id to the new property, and call setData again. I did a talk a while back on using fourQ as a DAO layer independent of FarCry. See http://www.acfug.org/index.cfm?fa=meetings.meetingdetail&EventID=152 for details on using arrays w/fourQ. Hoolahawk wrote: > Hi, > > We have a included page that displays a list of pages that users are > able to subscribe to, to be notified when the page is updated. > > We want users who want to subscribe to be able to register their > details and indicate the pages they want to subscribe to from a page > available to all users on the site. > > My question relates to how I should register their details in the > database (all we will be collecting is name, email address and pages > to subscribe to (as a sting list)) not the full gammit that FC asks > for. > > Should we create a new custom type to collect, delete etc these users > or should we use the FC registration system. > > If we should use FC's system, how do I intergrate this into the main > front end? > > (man I hope that makes sense :) > > Regards > > David > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
