- A cfc in /farcry/your_project/packages/types that extends farcry.farcry_core.packages.types.types
Since you're extending a current type you would extend farcry.farcry_core.packages.types.dmNews - If the extension you're implementing is extra type properties, add them. To see how to do this is to look in the core type.
- At this point a good way to test the type is to
deploy it. If you get an error on that page, or you don't get the option to deploy your changes, then your type has errors.
- A type cfc needs two methods. A standard practice is to implement them by including "_yourtype/method.cfm"
- edit: outputs a form and processes the form's result. If you want to implement the 'wizard' format some core types use, here is
a short howto.
- display: when someone clicks on 'view' in the type list, this method is what is used. It is also used when a public user opens a type that doesn't specify a displayMethod.
- edit: outputs a form and processes the form's result. If you want to implement the 'wizard' format some core types use, here is
a short howto.
- In /farcry/your_project/customadmin add a file that lists instances of your type and provides links for editing/adding/deleting. The easiest way to do this is to use the built in widgets
- Add this new admin page to the webtop
Blair
On 9/13/06, CRJ <[EMAIL PROTECTED]> wrote:
I'm trying to add a custom content type based off of the News Content
Type, but I am having problems. None of the documention I can find on
this subject seem complete or they assume I have knowledge that I
don't. I've tried looking in the FarCry 3.0 Developers Guide, but the
info there isn't very good. I have also looked at old how-to's from
Brendan Sisson, but these are out of date. I am looking for basic
step-by-step instructions on how to add a custom content type. Please
help...
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
