the way I would do it is to create an includedObj. For example, take a look at /projects/<name>/includedObj/_search.cfm
Essentially, in your tree (in the admin webtop) you can create an include page. All that page does is pull the code from an includedObj file. So, you could create a _searchHotelBookings.cfm file, create your form there (using whatever method of form creation you want, cfform, etc), make all your hotel API calls there etc. Tomek On Thu, May 28, 2009 at 11:45 AM, adster <[email protected]> wrote: > > Hi All, > > I have been looking into using FarCry and the FarCry CMS for a site > rebuild that I will be starting shortly. The site deals with hotel > room bookings. > > The admin side of the Far Cry CMS looks amazing and I have got my head > around most of the developer chapters. The fact that I can 'scaffold' > backend forms and create content types etc looks good. > > One part of the new site I am buiding needs to incorporate a form > which includes a date picker, a couple of drop downs and possibly > another tick box for some options. Once submitted the form action > needs to go off and query a web service API in order to return hotel > availability based on the options entered. Currently the application > looks up a list of hotels and then passes the hotel ids into the API. > > As mentioned by a couple of posts on this group how do I go about > doing this on the front end of a site? For a start I need to create a > form. Easy to do on the admin but how is this done on the front end? > And where do I include all of the logic for the webservice call? > > I would also ideally like to grab data from the model layer and > incorporate that into the XML results returned by the API. Is all this > possible and can anyone point me in the right direction in terms of > docs or posts regarding this type of thing? > > Thanks in advance, > > Adam > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
