Robertson-Ravo, Neil (RX) wrote:

Hey All,


Sorry for the late response here Neil...just woke up ;)

Thanks Geoff for updating the How To, but where would you suggest a user stores their list handlers etc...? from the customadmin.xml file the links is
<link>/farcry/admin/customadmin.cfm?module=bsPhoto/list.cfm</link>
which I assume is not correct as that would be editing the farcry core?


C'mon, you know you should never assume! If you actually take a look at the code in that customadmin.cfm file it shows that it includes the template in your application, from the customadmin directory (where this xml file is stored), and not farcry_core. Looking at the file structure in the How To, bsPhoto/list.cfm is found beneath the customadmin.xml file (<appName>/customAdmin/bsPhoto/list.cfm)

Now I should also point out that this is not the handler, this is just a listing page for you custom type. The handlers all belong under the type definition in your application, eg <appName>/packages/types/bsPhoto. Here you will often have an edit.cfm and display.cfm, but you also could just contain the handlers in the bsPhoto.cfc in the types directory, we just have a best practice of removing large chunks of code from the cfc into underlying pages, mainly for readability and maintenance reasons.

- Brendan
http://farcry.daemon.com.au

ps hey why is Geoff getting all the credit for my walkthrough? ;)



---
You are currently subscribed to farcry-dev as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to