Question regarding the 255 character limit for a String Field type

View: New views
2 Messages — Rating Filter:   Alert me  

Question regarding the 255 character limit for a String Field type

by Alex Bleasdale :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'm hoping someone can help,

I've created several Field types as strings and wanted to know whether there is there any way to raise their 255 character limit?

Thanks in advance,
A

Re: Question regarding the 255 character limit for a String Field type

by Karel Vervaeke :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

In general, when fields tend to get that long, you really should
consider using a part instead of a field. (Alternatively you can
consider a multivalue string field, but usually that's not a very nice
solution.)

If you want to go ahead changing the length limit, there are a number
of locations where Daisy would need to be chaged.

At the very minimum (just to patch your local installation),
- change the limit in the repository database, table thefields, column
stringvalue.
- in the daisy installation directory, change the limit imposed in
fieldtype_to_widgetdefinition.xsl.

HTH,
Karel

On Fri, Oct 16, 2009 at 8:42 PM, Alex Bleasdale <rhodlite78@...> wrote:

>
> Hi,
>
> I'm hoping someone can help,
>
> I've created several Field types as strings and wanted to know whether there
> is there any way to raise their 255 character limit?
>
> Thanks in advance,
> A
> --
> View this message in context: http://www.nabble.com/Question-regarding-the-255-character-limit-for-a-String-Field-type-tp25929926p25929926.html
> Sent from the Daisy - General mailing list archive at Nabble.com.
>
> _______________________________________________
> daisy community mailing list
> Professional Daisy support: http://outerthought.org/en/services/daisy/support.html
> mail to: daisy@...
> list information: http://lists.cocoondev.org/mailman/listinfo/daisy
>
_______________________________________________
daisy community mailing list
Professional Daisy support: http://outerthought.org/en/services/daisy/support.html
mail to: daisy@...
list information: http://lists.cocoondev.org/mailman/listinfo/daisy