Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
og:description should be allowed to be longer than 255 characters. Interestingly, the schema already correctly defines it as a type: text, so translations are allowed to be longer.
Proposed resolution
I guess it would be nice if the annotation could specifiy the form field type, but for now, duplicating the form definition it like the Description class for example does.
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#7 | Screen Shot 2019-02-22 at 8.38.08 AM.png | 23.72 KB | kell.mcnaughton |
#7 | Screen Shot 2019-02-21 at 3.58.41 PM.png | 19.92 KB | kell.mcnaughton |
#5 | metatag-og-description-textarea-3001387-5-2-interdiff.txt | 4.85 KB | mbovan |
#5 | metatag-og-description-textarea-3001387-5.patch | 4.47 KB | mbovan |
| |||
#2 | metatag-og-description-textarea-3001387-2.patch | 955 bytes | Berdir |
|
Comments
Comment #2
BerdirComment #3
mbovan CreditAttribution: mbovan at MD Systems GmbH commented#2 works fine.
Comment #4
DamienMcKennaWha would you think about expanding the Metatag API to indicate that certain tags were "verbose" or "long", which would then change them to a textarea instead of a text field?
Comment #5
mbovan CreditAttribution: mbovan at MD Systems GmbH commentedThis patch introduces a new annotation attribute
long
which setstextarea
form type depending on the value.There might be other places in the module(s) where we have to add/document a new attribute.
Supporting the form field type would be quite useful, but I'm not sure if that would work for all kind of types. For instance, using select would require
#options
property too?Comment #6
DamienMcKennaThanks for putting that together, will review it soon.
Comment #7
kell.mcnaughton CreditAttribution: kell.mcnaughton at Mediacurrent commentedI applied the patch from #5 and can confirm it works.
Before
After
Comment #8
BerdirLooks fine to me as well.
Comment #9
DamienMcKennaComment #11
DamienMcKennaCommitted. Thanks all.