Have a look at the docs<http://docs.farcrycms.org/confluence/display/FCDEV40/list>. You probably want to use the ftListData attribute instead of ftList.
Blair On Dec 19, 2007 6:22 AM, tilespace <[EMAIL PROTECTED]> wrote: > > Ahhhh it's me again :) > > I don't think I've asked this yet tho there's a small ringing in the > back of my grey matter that says I have... If I have, I apologize for > the duplicate question, but I can't seem to find it anywhere when I > search the group. > > Anyways, I have a custom type "destinations" and a custom type "tour > companies" (wow, sounds alot like the example in the dev handbook so > far). Destinations is a simple name, description type. No issues > whatsoever. Tour companies is all of the company's relevant info > (name, addr, website, phone, etc) and that's no problem. But I want to > be able to have a list of destinations available as checkboxes when > adding/editing tour companies. I can build out the front-end no > problem where it groups by destinations and links to the tour > companies detail page so I'm not concerned about that. > > I could build a dropdown that pulls the destinations no problem with > the following code: > > <cfproperty ftSeq="1" > ftFieldSet="Details" > name="destinations" > type="string" > required="false" > hint="Destinations" > ftLabel="Destinations" > ftType="UUID" > ftRenderType="list" > ftShowLibraryLink="false" > ftJoin="destinations" /> > > But I don't want a dropdown. If I have the following code for creating > checkboxes, what do I have to change? > > <cfproperty ftSeq="3" > ftFieldSet="Details" > name="destinations" > type="longchar" > required="true" > hint="Destinations" > ftLabel="Destinations" > ftType="list" > ftRenderType="checkbox" > ftLayout="Yes" > ftList="Yes,No" > ftValidation="required" /> > > For instance, the ftType is different. Should it remain UUID? I'm > guessing it should. ftRenderType I would think would be checkbox. And > what about type, string or longchar? And finally, how would the ftList > be populated? What goes there? > > For those fairly observant, ftLayout is something I added where if > it's "Yes" then it puts the checkboxes in columns side by side instead > of a single column (it determines how many total there are, divides by > 5 and that's how many columns are displayed, rounded up). I needed to > add this because one of the other custom types I created had roughly > 50 options and, well, that was insane :) > > Anyways, if you can help out or point me in the right direction, I > would appreciate it. > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
