Hi Stephen! Thank you, this works so far. I hope I never need more than 255 characters in label, anyways (what if the title is longer?).
I thought -- don't ask me why ;-) -- that bLabel just says: show label for html-form-element... my mistake. On 4 Jan., 17:42, "Stephen Moretti" <[EMAIL PROTECTED]> wrote: > The label property was used when listing data items in the administration. > To some extent the scaffolding and form tools that allow you to easily > specify which columns to show in the admin has made "label" redundant. > > I don't have a copy of the core to hand, so I'm not exactly sure what the > defaults are for setting label, but I thought it was only automatically > using "title". However, to resolve your issue, you can tell farcry which > properties to use as the label by giving a property the bLabel="1" attribute > to explicitly specify which properties will be inserted into the label > property. Just set the "title" property in your custom type to bLabel="1" > and that should resolve the error message for you. > > Hope that helps > > Regards > > Stephen > > On 04/01/2008, nakedtoast <[EMAIL PROTECTED]> wrote: > > > > > > > Hi there! > > > I have a customtype called "episodes" which extends > > "farcry.core.packages.types.types". > > So "episodes" inherits a property called "label". > > In episodes.cfc I also define <cfproperty name="text" ... /> and > > <cfproperty name="teaser" ... />. > > > When I check the database, I see that the column "label" contents the > > values of colums "teaser" and "text". > > > My questions: > > What was "label" original made for? > > Does it automatically merge the contents of values named "text" and > > "teaser"? What for? > > > My problem: > > The column "label" is (VARCHAR 255)... > > at the moment, the sum of the content of "teaser (LONGCHAR)" and "text > > (LONGCHAR)" is more than 255 characters (which is ... always), an > > error is thrown: "Data truncation: Data truncated for column 'label' > > at row 1" > > > Any idea for a workaround (or the answers to the questions above) or > > do I have a mistake in my understanding? > > Thanks! > > -- > Stephen Moretti > Blog :http://nil.checksite.co.uk/ > Twitter :http://twitter.com/mr_nil --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
