I think I've been able to "successfully" extend the dmNews type. I've added an issue column to the table and have modified the plp. It's all working and the data is being written to the table. However I have one problem. When I go to the news type and select add it takes me through the plp steps in the order that I've specified but if I try to go back to the one that I've added after passing it, it resets my data as if I had not entered anything even though the sql table is reflecting my changes.
Any thoughts? -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Coughlin Sent: Monday, November 22, 2004 11:20 AM To: FarCry Developers Subject: [farcry-dev] Re: Custom Types Jaci Chesnes wrote: > So as it turns out what I want to do is extend dmNews rather than create > a totally custom type...Or are they one and the same. Jaci, A few months ago I posted (in the Farcry mailing list) a sort-of how-to about extending dmHTML. I'll repost it here (modified for dmNews). If you are not familiar with #1 below please refer to the following link: http://farcry.daemon.com.au/go/objectid/2B8CC3BC-D0B7-4CD6-F9525292C5BC6 A4E Good luck. ============= A simple step-by-step for extending dmNews (can be used for other types like dmHTML). Add as many PLP steps as you'd like (refer to #5 below). 1. Create <appname>/packages/system/dmHTML.cfc (add the fields you need. Don't forget to apply them in admin--COAPI--types). 2. Create the following directories <appname>/packages/system/_dmNews <appname>/packages/system/_dmNews/plpEdit 3. Create your extra step file in <appname>/packages/system/_dmNews/plpEdit (In this example I call it extrastep.cfm) 4. Copy the file /farcry_core/packages/types/_dmnews/edit.cfm into <appname>/packages/system/_dmNews 5. modify your new copy of edit.cfm and add the following plp step: (and place it in the opder you want it to appear) <farcry:plpstep name="extrastep" Stepdir="farcry/#application.applicationname#/packages/system/_dmNews/pl pEdit/" template="extrastep.cfm"> ---------- For more information on PLPs please refer to the following links: PLPs Demystified http://farcry.daemon.com.au/index.cfm?objectid=4DAC2D01-D0B7-4CD6-F96528 F46FE63ACF Conditional PLPS http://farcry.daemon.com.au/index.cfm?objectid=7FD51BC6-D0B7-4CD6-F9C0D0 EEDCAC8DBB -Jeff C. --- You are currently subscribed to farcry-dev as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/ --- You are currently subscribed to farcry-dev as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
