Steve, On May 4, 6:33 pm, [EMAIL PROTECTED] wrote: > > Looking at the generated source code of exiting forms in the admin i > > have extracted the following code to wrap my own forms in. This is > > what I am using for the select boxes...as an example > > Hmm.. why are you extracting the HTML at all? The form is generated > in a specific way; dynamically using formtools. If you are not using > this technology you should just build the forms by hand -- but you'd > want to have a compelling reason to. In 4.0 you would generally modify > the metadata for the object instead of building your own edit > handler. Did you build this custom object or are you just modifying > it? Why are you trying to change the HTML markup directly?
Had another look at your screenshot. It looks a little bit like you are bypassing the *entire* framework and just handcoding the form in the webtop. Is that right? You should only have to modify the CFPROPERTY tags of your content type to build whatever form you want. That should cater to 90% of your needs. Its very rare that you need to go to hand building the edit handler.. and when you do you should be using ft:form and ft:object tags -- not hand coding the HTML form. Basically in 4.0 you have the following options: a) modify the content type cfproperty tags b) add a ./webskin/typename/edit.cfm file and use ft:form et al tag library. Have a look at the googleMaps sample library and its content types -- its a pure 4.0 implementation and will give you some sense of how these things are put together. You can get a zip of the code base bottom-left corner of the screen: http://fisheye3.cenqua.com/browse/farcrycms/plugins/googleMaps/trunk Hope that helps, -- geoff http://www.daemon.com.au/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
