Euhmmm through related content / html ? Didn't even pop my mind .... Although the linkNavigation looks more intuitive to use with the tree and all.
On Dec 2, 11:14 pm, Blair McKenzie <[email protected]> wrote: > I'm coming in late, but is there a reason you don't want to add the items to > the tree directly like dmHTML? > > Blair > > On Thu, Dec 3, 2009 at 4:04 AM, Marco van den Oever < > > [email protected]> wrote: > > Hi Chris your absolutly right, maybe next time if i trial and error it > > like this i would already be done :) > > I quickly checked this in another wiz step and guess what.... there > > the "linkNavigation" works alone by itself. > > > When i try the below code in the "General Details" wiz step it doesn't > > work, when i try it in the "News Body" wiz step it works..... > > > <wiz:object stobject="#stobj#" wizardID="#stWizard.ObjectID#" > > lfields="linkNavigation" format="edit" intable="false" legend="News > > Story" /> > > > So i don't know how or what but i can go on now :) > > > Thanks. > > > On Dec 2, 5:31 pm, Chris Kent <[email protected]> wrote: > > > Marco, > > > > Hopefully not too many steps to try and starting simple makes it easer > > > to track down the problem. > > > > If any step fails - stop and work out why. > > > 1. A simple content type using the built in formtools edit handling > > > 2. Same content type but add in an edit handler using wizards tools > > > 3. Start to bring in your other content properties. > > > > Success in steps 1 and 2 should indicate that FarCry and your > > > installation are OK. > > > > Doing it this way, if you find a problem you are more likely to find > > > someone who recognises the symptoms and can help. > > > I had a very quick look at your full CFC and edit handler, but do not > > > have the time to go through it all. > > > > Chris. > > > > On Dec 2, 4:19 pm, Marco van den Oever <[email protected]> > > > wrote: > > > > > Yeah... i was hoping that it would ring a bell to someone as this is > > > > gonna be a long trial and error path...... > > > > Thanks! > > > > > On Dec 2, 9:56 am, Chris Kent <[email protected]> wrote: > > > > > > Marco, > > > > > > Try a very simple test content type. > > > > > > <cfcomponent extends="farcry.core.packages.types.versions" > > > > > displayname="Test" hint="Test"> > > > > > > <cfproperty ftseq="1" ftfieldset="General Details" name="title" > > > > > type="string" hint="Meaningful reference title" required="no" > > > > > default="" ftLabel="Title" ftvalidation="required" /> > > > > > > <cfproperty ftseq="2" ftwizardStep="General Details" > > > > > ftfieldset="Navigator" name="navNavigator" type="string" > > > > > hint="Navigator." required="no" default="" fttype="navigation" > > > > > ftlabel="Site Tree Home" > > > > > ftalias="home" ftselectmultiple="1" ftRenderType="tree" > > > > > fthelptitle="Content Location" > > > > > fthelpsection="Use the Navigator to set the content > > placement." /> > > > > > > </cfcomponent> > > > > > > Chris. > > > > > > On Dec 2, 12:14 am, Marco van den Oever <[email protected]> > > > > > wrote: > > > > > > > That's what i was scared of... scaring everyone away with that leap > > of > > > > > > code... > > > > > > Still don't have a clue... > > > > > > > On Nov 29, 2:50 pm, Marco van den Oever < > > [email protected]> > > > > > > wrote: > > > > > > > > Mjes strange, well I'll just dump the whole bunch here > > then....... > > > > > > > Here they are: > > > > > > > > ------- cfc ------- > > > > > > > > <cfcomponent extends="farcry.core.packages.types.types" > > > > > > > displayname="products" hint="Shop product administration." > > > > > > > bFriendly="true" bObjectBroker="true"> > > > <!------------------------------------------------------------------------ > > > > > > > type properties > > > ------------------------------------------------------------------------- > > > > > > > > <cfproperty ftseq="1" ftfieldset="General Details" > > > > > > > ftwizardStep="General Details" name="title" type="string" > > > > > > > hint="Title." required="no" default="" ftlabel="Title" > > > > > > > ftvalidation="required" /> > > > > > > > > <cfproperty ftSeq="2" ftFieldset="General Details" > > > > > > > ftwizardStep="General Details" name="price" type="string" > > > > > > > hint="Price." ftdefault="0" required="yes" ftLabel="Price" > > > > > > > ftvalidation="required" /> > > > > > > > > <cfproperty ftSeq="3" ftFieldset="General Details" > > > > > > > ftwizardStep="General Details" name="stock" type="integer" > > > > > > > hint="Stock." required="no" ftLabel="Stock" > > ftvalidation="required" /> > > > > > > > > <cfproperty > > > > > > > ftseq="4" ftfieldset="Redirection" ftwizardStep="General > > Details" > > > > > > > name="linkNavigation" type="string" > > > > > > > hint="Link to a navigation folder within the site." > > required="no" > > > > > > > default="" > > > > > > > fttype="navigation" ftalias="home" ftrendertype="tree" > > > > > > > ftSelectMultiple="true" ftlabel="Navigation Folder" /> > > > > > > > > <cfproperty ftseq="6" ftfieldset="Categorisation" > > > > > > > ftwizardStep="General Details" name="catshopproducts" > > type="longchar" > > > > > > > hint="Categorisation." required="no" default="" fttype="category" > > > > > > > ftlabel="Category" /> > > > > > > > > <cfproperty ftseq="21" ftfieldset="Description" > > > > > > > ftwizardStep="Description" name="Body" type="longchar" hint="Main > > body > > > > > > > of content." required="no" default="" ftType="RichText" > > ftlabel="Body > > > > > > > Content" > > > > > > > ftImageArrayField="aObjectIDs" ftImageTypename="dmImage" > > > > > > > ftImageField="StandardImage" > > > > > > > ftTemplateTypeList="dmImage,dmfile,dmflash,dmNavigation,dmHTML" > > > > > > > ftTemplateWebskinPrefixList="insertHTML" /> > > > > > > > > <cfproperty ftseq="31" ftfieldset="Teaser" > > ftwizardStep="Description" > > > > > > > name="teaserImage" type="UUID" hint="Teaser image to display." > > > > > > > required="no" default="" fttype="uuid" ftjoin="dmImage" > > > > > > > ftlabel="Teaser Image" > > > > > > > fthelptitle="Teaser Requirements" > > > > > > > fthelpsection="Teaser images can only be > > selected from the pool of > > > > > > > associated media images. You must add to the media library before > > > > > > > selecting." /> > > > > > > > > <cfproperty ftseq="32" ftfieldset="Product teaser" > > > > > > > ftwizardStep="Description" name="Teaser" type="longchar" > > hint="Product > > > > > > > teaser text." required="no" default="" ftlabel="Product teaser" > > > > > > > ftlimit="400" /> > > > > > > > > <cfproperty ftseq="41" ftfieldset="Related Content" > > > > > > > ftwizardStep="Description" name="aObjectIds" type="array" > > hint="Mixed > > > > > > > media content for this content." required="no" default="" > > > > > > > ftJoin="dmImage,dmfile,dmflash" ftlabel="Media Library" > > > > > > > bSyncStatus="true" ftJoinAllowDuplicates="false" /> > > > > > > > <cfproperty ftseq="42" ftfieldset="Related Content" > > > > > > > ftwizardStep="Description" name="aRelatedIDs" type="array" > > hint="Holds > > > > > > > object pointers to related content. Can be of mixed types." > > > > > > > required="no" default="" ftJoin="dmFile,dmNavigation,dmHTML" > > > > > > > ftlabel="Related Content" /> > > > > > > > > <!--- system attribute ---> > > > > > > > <cfproperty name="status" type="string" hint="Status of the node > > > > > > > (draft, pending, approved)." required="yes" default="draft" /> > > > <!------------------------------------------------------------------------ > > > > > > > object methods > > > ------------------------------------------------------------------------- > > > > > > > > <!--- check if the item is allready in shopcart array > > > > > > > > thank you bubblocity! > >http://livedocs.adobe.com/coldfusion/6.1/htmldocs/functio3.htm#wp3473387 > > > > > > > > ---> > > > > > > > <cffunction name="ArrayFind" returntype="boolean"> > > > > > > > <cfargument name="Needle" required="true"> > > > > > > > <cfargument name="HayStack" required="true"> > > > > > > > <cfset var Found=false> > > > > > > > <cfif isArray(arguments.HayStack)> > > > > > > > <cfloop index="i" from="1" > > to="#ArrayLen(arguments.HayStack)#"> > > > > > > > <cfif arguments.Needle IS arguments.Haystack[i].id> > > > > > > > <cfset Found = true> > > > > > > > <cfbreak> > > > > > > > </cfif> > > > > > > > </cfloop> > > > > > > > </cfif> > > > > > > > <cfreturn Found> > > > > > > > </cffunction> > > > > > > > <cffunction name="ArrayFindNoCase" returntype="boolean"> > > > > > > > <cfargument name="Needle" required="true"> > > > > > > > <cfargument name="HayStack" required="true"> > > > > > > > <cfset var Found=false> > > > > > > > <cfif isArray(arguments.HayStack)> > > > > > > > <cfloop index="i" from="1" > > to="#ArrayLen(arguments.HayStack)#"> > > > > > > > <cfif UCase(arguments.Needle) EQ > > UCase(arguments.Haystack[i].id) > > > > > > > > <cfset Found = true> > > > > > > > <cfbreak> > > > > > > > </cfif> > > > > > > > </cfloop> > > > > > > > </cfif> > > > > > > > <cfreturn Found> > > > > > > > </cffunction> > > > > > > > > <cffunction name="getactiveshops" hint="Gets all active shops and > > put > > > > > > > them in session array for later usage" output="false" > > > > > > > returntype="any"> > > > > > > > > <!--- get current active shops and set them to a session array > > ---> > > > > > > > > <!--- set faruser object ---> > > > > > > > <cfset obj_faruser = createObject > > > > > > > ('component',application.stcoapi.faruser.packagepath) /> > > > > > > > > <!--- set dmProfile object ---> > > > > > > > <cfset obj_dmProfile = createObject > > > > > > > ('component',application.stcoapi.dmProfile.packagepath) /> > > > > > > > > <!--- set props ---> > > > > > > > <cfset props = {} /> > > > > > > > <cfset props.selectclause = "userid"> > > > > > > > <cfset props.whereclause="#application.dbowner#faruser.userstatus > > = > > > > > > > 'active'" /> > > > > > > > > <!--- set active users to > > ... > > read more » -- 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
