On 29/11/2007, Jaci <[EMAIL PROTECTED]> wrote: > > > dmEvent.cfc in 4.0.9 now resides in farcry\plugins\farcrycms\packages > \types. If I wanted to extend dmEvent.cfc to add additional fields to > the form do I still place the local in <project>/packages/types/ > dmEvent.cfc? I'm still pretty fuzzy on how this whole extending thing > works and all the steps that need to happen but my assumption is that > the only real difference between the documentation for extending is > the pathing changes in 4.0.9. Can anyone confirm that this is true. >
Thats correct. Normally to create your own custom type in farcry you create a cfc that extend farcry.core.packages.types.types. When you want to change an existing type you create a cfc that extends that type. In the case of dmEvent.cfc you would create a cfc in the <project>/packages/types/ called dmEvent.cfc and in the cfcomponent tag you would extend farcry.plugins.farcrycms.packages.types.dmEvent You can override existing properties or add new properties, so you could make override eventCat, make it into a list type and supply a list of categories the user can access from a custom method. Hope that helps Regards Stephen -- Stephen Moretti Blog : http://nil.checksite.co.uk/ Twitter : http://twitter.com/mr_nil --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
