The list page and the edit handler are not the same thing:
  • List objects - is a general page that isn't associated with a particular instance and doesn't have a corresponding type method. It needs to be under customadmin in order to be accessable below the web root, via customadmin.cfm?module=... This is also a good place to put pages for serving ajax requests.
  • Edit handler - is basically a method that is called on a type instance. It creates and handles a self-posting edit form for the instance data. Because it can be accessed by invoking the type, it's possible to group it more closely to the type component itself in packages/types/typename. The  edit handler is triggered by calling the edit method on the type component. It should produce a self-handling form (the easiest way to see how this is done is to look at how core methods do it). For the purposes of organisation, files associated with the type component are usually put in /types/_abTypeName/.
Example: I have a mail list type, which keeps track of several lists. In customadmin/bmRecipient/ I have:
  • list.cfm - lists all recipients
  • spreadsheet.cfm - has a form that allows the user to select a list, then returns a spreadsheet containing the recipients on postback
These are both tied into webtop menu items.

I don't know of any 'getAll'. I would probably just query the table: select objectid, label from abTypeName. Possibly with where status='approved' for types that support workflow.

Blair

On 10/20/06, Raymond Camden <[EMAIL PROTECTED]> wrote:

The doc for creating a custom type
(http://docs.farcrycms.org:8080/confluence/display/FCDEV30/Custom+Types),
mentions that you should use /customadmin/typename/listtype.cfm for
your "List Objects" page.

However - later on in the doc when talking about a custom edit
handler, it says to use packages/types/typename.

Is there a standard?

Also - would anyone be willing to share a simple example since the
docs do not? Where do I point the form method to for example.

Lastly - my type is using a FK pointing to another type. Is there a
simple command to getAll for a type so I can build a drop down?

--
===========================================================================
Raymond Camden, Vice President of Technology for roundpeg

Email    : [EMAIL PROTECTED]
Blog     : ray.camdenfamily.com
AOL IM   : cfjedimaster

Video game player? Have kids? Check out KidGamers.org


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

Reply via email to