Drupal allows you to create fields with a label that has a maximum length of 128 characters. Meanwhile, display suite fields are limited to only 32 character labels.
I believe this is because Display Suite is limiting label length to the same size as the machine name for fields. I was thinking altering the form to increase the limit allowed on the label field would be enough to fix the error.
Would altering the form and saving a longer label cause any problems elsewhere?
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 1822404-2.patch | 507 bytes | swentel |
Comments
Comment #1
swentel commentedHmm, don't think that would cause any problems, never though about that.
Comment #2
swentel commentedChanged maxlength of label in 7.x-2.x and 8.x-2.x
Comment #3
elvis2 commented@swentel, doesn't the ds.install file need to be updated too? It looks like the ds_view_modes schema is allowing a length 32 chars as well.
Comment #4
elvis2 commentedAlso, does the machine name length need to be addressed?
Comment #4.0
elvis2 commentedfixed typo
Comment #5
maximpodorov commentedFunny fix. It allows to enter long names but these names can't be stored in the database since DB field length is still 32.
Comment #6
aspilicious commentedThis si about the field label length.
That length can be 128 chars according to the summary:
"Drupal allows you to create fields with a label that has a maximum length of 128 characters"
So why can't they be stored?
Comment #7
maximpodorov commentedComment #8
aspilicious commentedI added an update hook to increase the length to 128. Display Suite dev should be ok now.