Usually in those cases we pass html as the exit method (sorry, can't remember how), with the script we need to run.
Blair On Thu, Jun 30, 2011 at 1:25 PM, Matthew Williams < [email protected]> wrote: > Success... I guess. Here's what I did to make it work (works on > add/edit/approve/etc): > > 1. Create an edit.cfm for your content type, in this case mdwArticles. In > this code have a process form that looks like this (note the return="true"): > > <ft:processform action="Save" exit="true" return="true"> > <ft:processformobjects typename="mdwArticles" /> > </ft:processform> > > 2. Modify (or make a copy in your project being the better answer) > /farcry/core/tags/formtools/**processform.cfm: > > Add the webskin tag > <cfimport taglib="/farcry/core/tags/**webskin" prefix="skin" /> > > Add a new attribute > <cfparam name="attributes.Return" default="false"><!--- Return to > objectadmin ---> > > After the code block (don't forget the if)<!--- Was a simple URL redirect > requested? ---> > <!--- Return to the objectadmin ---> > <cfif structKeyExists(attributes, "Return")> > <cfset attributes.exit = true /> > <cfset stLocal.onExitProcess = structNew() /> > <cfset stLocal.onExitProcess.Type = "Return" /> > <cfset stLocal.onExitProcess.Content = "" /> > </cfif> > > And finally, you need a case to handle the return (<cfswitch > expression="#stLocal.stOnExit.**Type#">) > <cfcase value="Return"> > <cfif structKeyExists(stLocal.**stOnExit, "Content")> > <skin:onReady> > <cfoutput> > > parent.$fc.**objectAdminActionDiv.dialog('** > close'); > </cfoutput> > </skin:onReady> > </cfif> > </cfcase> > > I'm not 100% sure, but you may be able to pass in the onExitProcess struct > in the objectadmin call to produce the same results, but I'm all out of time > tonight. > > > > Matthew Williams > Geodesic GraFX > www.geodesicgrafx.com/blog > > -- > You received this message cos you are subscribed to "farcry-dev" Google > group. > To post, email: [email protected] > To unsubscribe, email: > farcry-dev+unsubscribe@**googlegroups.com<farcry-dev%[email protected]> > For more options: > http://groups.google.com/**group/farcry-dev<http://groups.google.com/group/farcry-dev> > ------------------------------**-- > Follow us on Twitter: http://twitter.com/farcry > -- You received this message cos you are subscribed to "farcry-dev" Google group. To post, email: [email protected] To unsubscribe, email: [email protected] For more options: http://groups.google.com/group/farcry-dev -------------------------------- Follow us on Twitter: http://twitter.com/farcry
