OK, based on information from the following link:

http://docs.farcrycms.org/display/FCDEV40/Form+Tool+Wizard

I created a custom edit for dmNews placed in project/webskin/dmNews/
edit.cfm.

Code:

<cfsetting enablecfoutputonly="true" />
<cfimport taglib="/farcry/core/tags/wizard" prefix="wiz" />
<!--- Always save wizard WDDX data --->
<wiz:processwizard excludeAction="Cancel">
  <!--- Save the Primary wizard Object --->
  <wiz:processwizardObjects typename="#stobj.typename#" />
</wiz:processwizard>
<wiz:processwizard action="Save" Savewizard="true" Exit="true" />
<!--- Save wizard Data to Database and remove wizard --->
<wiz:processwizard action="Cancel" Removewizard="true" Exit="true" />
<!--- remove wizard --->
<!--- RENDER THE WIZARD --->
<wiz:wizard ReferenceID="#stobj.objectid#" r_stWizard="stWizard">
  <wiz:step name="General Details">
    <wiz:object stobject="#stobj#" wizardID="#stWizard.ObjectID#"
lfields="title,source,displayMethod" format="edit" intable="false"
legend="General Details" />
    <wiz:object stobject="#stobj#" wizardID="#stWizard.ObjectID#"
lfields="catNews" format="edit" intable="false"
legend="Categorisation" />
    <wiz:object stobject="#stobj#" wizardID="#stWizard.ObjectID#"
lfields="publishDate,expiryDate" format="edit" intable="false"
legend="Publishing Details" />
  </wiz:step>
  <wiz:step name="News Body">
    <wiz:object stobject="#stobj#" wizardID="#stWizard.ObjectID#"
lfields="Body" format="edit" intable="false" legend="News Story" />
    <wiz:object stobject="#stobj#" wizardID="#stWizard.ObjectID#"
lfields="teaserImage,Teaser" format="edit" intable="false"
legend="Story Teaser" />
    <wiz:object stobject="#stobj#" wizardID="#stWizard.ObjectID#"
lfields="aObjectIds,aRelatedIDs" format="edit" intable="false"
legend="Related Content" />
  </wiz:step>
</wiz:wizard>
<cfsetting enablecfoutputonly="false" />

On May 1, 4:45 pm, Marco van den Oever <[email protected]>
wrote:
> Yes, I'll check them further. thanks.
>
> On May 1, 4:18 pm, Tomek Kott <[email protected]> wrote:
>
> > Sorry Marco, I don't. I've never used it myself, just remembered
> > seeing it on the lists. Did you take a look at the state and country
> > types mentioned in the link you sent?
>
> > Tomek
>
> > On Fri, May 1, 2009 at 9:16 AM, Marco van den Oever
>
> > <[email protected]> wrote:
>
> > > Tomek, do you have any sample code i could use to grasp the usage of
> > > this?
>
> > > paleasee...
>
> > > On Apr 30, 6:53 pm, Marco van den Oever <[email protected]>
> > > wrote:
> > >> Got something that might be enough to understand how this works:
>
> > >>http://groups.google.com/group/farcry-dev/browse_thread/thread/a7767b...
>
> > >> "The default ajax stuff is added with the ft:object tag. It basically
> > >> adds
> > >> events to the watched fields. If those other fields change, the
> > >> dependent
> > >> field is ajax'd in. Basically the edit function gets called with the
> > >> new
> > >> watched values passed in. You can see an example of this at work with
> > >> the
> > >> country and state formtools."
>
> > >> On Apr 30, 5:06 pm, Marco van den Oever <[email protected]>
> > >> wrote:
>
> > >> > Ok thanks, needed to study all that kind of ajax etc stuff anyway so
> > >> > good time to start right now, is there a tutorial in the usage of this
> > >> > that you know of? I see all the info etc but need something to bind it
> > >> > all together...
>
> > >> > Thanks.
>
> > >> > On Apr 30, 4:37 pm, Tomek Kott <[email protected]> wrote:
>
> > >> > > Marco,
>
> > >> > > I think what you're looking for is ftWatch in the metadata (if you're
> > >> > > using FC5.1). Here's the link to a groups search on 
> > >> > > ftWatch:http://groups.google.com/group/farcry-dev/search?hl=en&group=farcry-d...
>
> > >> > > Tomek
>
> > >> > > On Thu, Apr 30, 2009 at 10:29 AM, Marco van den Oever
>
> > >> > > <[email protected]> wrote:
>
> > >> > > > Let me explain what i want to do, maybe one of you has another
> > >> > > > approach for it so i might not even have to custom edit thedmNews.
>
> > >> > > > The only thing i want to do is create an extra checkbox which, once
> > >> > > > selected, will trigger a function.
>
> > >> > > > I have extended thedmNewsalready and can easily create the extra
> > >> > > > checkbox, also create the function in the extendeddmNews.cfc is no
> > >> > > > problem, but then?
>
> > >> > > > How can i trigger that function based on the selection state set in
> > >> > > > the edit mode?
>
> > >> > > > Thanks.
>
> > >> > > > On Apr 30, 2:41 pm, Marco van den Oever 
> > >> > > > <[email protected]>
> > >> > > > wrote:
> > >> > > >> OK then I'll just go and create a custom from scratch, thanks.
>
> > >> > > >> On Apr 30, 3:08 am, AJ Mercer <[email protected]> wrote:
>
> > >> > > >> > I couldn't see one either or function indmNews.cfc so I am 
> > >> > > >> > assuming it is
> > >> > > >> > inherited from types.cfc
>
> > >> > > >> > But if you create one in your project (or plugin) it will 
> > >> > > >> > override this
>
> > >> > > >> > 2009/4/30 Marco van den Oever <[email protected]>
>
> > >> > > >> > > I worked a couple of times with a custom edit before but 
> > >> > > >> > > right now i
> > >> > > >> > > can't find the edit.cfm ofdmnewsto create a custom of it, 
> > >> > > >> > > where is
> > >> > > >> > > it located?
>
> > >> > > >> > > Thanks.
>
> > >> > > >> > --
> > >> > > >> > AJ Mercer
> > >> > > >> > Web Log:http://webonix.net
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to