Hi Ash For the kind of relationship you're describing you want a field of type 'uuid' with ftJoin="yourtype" as an attribute. You'll have to check the wiki to be sure, but I think the uuid form tool may support a dropdown rendertype. By default the tool uses the library interface.
Blair On 10/9/07, Ashley Gibson <[EMAIL PROTECTED]> wrote: > > I guess if we take away the terms categories and sub categories, what i am > looking for is the ability to link a custom type back to itself to setup a > many to one relationship. When creating a new category there should be a > drop down box showing all the categories and the ability to select one as > the parent category. This could be categories/sub categories or groups/sub > groups, supervisors/employees, divisons/sub divisions. > > Using the customadmin.xml i have added an extra tab to the admin interface > called "Products" which i want the ability to add categories and products > using the custom types framework. I want to use the permissions system to > control access to this tab and make it so users do not have to go to other > tabs to create content for this area. > > I should probably also mention that i am using the bUseInTree="false" so > these do not need to tie into the site tree. > > Thanks for your help Jake. > > Cheers, > > Ash > > On 10/9/07, Jake Churchill <[EMAIL PROTECTED]> wrote: > > > > I'm not at work right now and don't have CF or FC installed here. Is > > it possible to extend tree.cfc? > > > > > > ------------------------------ > > > > *From:* [email protected] [mailto:[EMAIL PROTECTED] > > * On Behalf Of *Ashley Gibson > > *Sent:* Monday, October 08, 2007 7:49 PM > > *To:* [email protected] > > *Subject:* [farcry-dev] Re: Categories & Sub categories > > > > > > > > Is it possible to do this seperately as these categories are only to be > > used for the products section and i would prefer if the products and > > categories were more of a plugin. I have created a product.cfc and a > > productCategory.cfc and put it in the packages.types dir for my project > > and started mucking around with the scaffolding form. It would be great if i > > could grab these files, deploy them to another website on a different server > > and not have to setup core categories. > > > > Any ideas? > > > > Cheers, > > > > Ash > > > > On 10/8/07, *Jake Churchill* <[EMAIL PROTECTED]> wrote: > > > > Assuming categories have not changed from v3 to v4 you can use what's > > built in. Use the category tree and functions for it ( > > application.factory.oCategory) and you can manage everything that way. > > > > > > > > _____ > > > > Jake Churchill > > Team Leader > > 11204 Davenport, Ste. 100 > > Omaha , NE 68154 > > http://www.cfwebtools.com > > 402-408-3733 x103 > > ------------------------------ > > > > *From:* [email protected] [mailto:[EMAIL PROTECTED] > > *On Behalf Of *Ashley Gibson > > *Sent:* Monday, October 08, 2007 3:07 AM > > *To:* [email protected] > > *Subject:* [farcry-dev] Categories & Sub categories > > > > > > > > Hello, > > > > I am building a simple list of products which have categories which can > > have subcategories etc... > > > > How do i go about using the one category table to manage sub categories. > > > > I have tried putting a property in the cfc that points back to itself as > > per below. It creates the table when i click deploy but still reports a > > conflict. if i try and deploy again, it just gives me a dump of the array. > > > > <cfcomponent name="dmCategory" displayname="Category" extends=" > > farcry.core.packages.types.types" hint="Custom Type for Category > > content" bUseInTree="false" bObjectBroker="true" > > objectBrokerMaxObjects="1000"> > > > > <!--- property definitions ---> > > <cfproperty ftSeq="1" > > ftFieldSet="Category Details" > > name="CategoryName" > > type="string" > > required="true" > > hint="Name of a Category" > > ftLabel="Category Name" > > ftType="string" > > ftValidation="required" /> > > > > <cfproperty ftSeq="2" > > ftFieldSet="Category Details" > > name="CategoryDesc" > > type="string" > > required="false" > > hint="Description of a Category" > > ftLabel="Category Description" > > ftType="string" /> > > > > <cfproperty ftSeq="3" > > ftFieldSet="Category Details" > > name="ParentCategory" > > type="array" > > required="false" > > hint="Parent Category" > > ftLabel="Parent Category" > > ftType="array" > > ftJoin="dmCategory" /> > > > > </cfcomponent> > > > > -- > > Cheers, > > > > Ash > > > > No virus found in this incoming message. > > Checked by AVG Free Edition. > > Version: 7.5.488 / Virus Database: 269.14.4/1056 - Release Date: > > 10/7/2007 6:12 PM > > > > > > > > > > > > No virus found in this outgoing message. > > Checked by AVG Free Edition. > > Version: 7.5.488 / Virus Database: 269.14.4/1056 - Release Date: > > 10/7/2007 6:12 PM > > > > > > > > > > > > > > -- > > Cheers, > > > > Ash > > > > > > > > > -- > Cheers, > > Ash > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
