Problem/Motivation

I have to use the multiple tokens in the field and My token text size is more than 500 characters. When I add the token, It shows the validation message that the limit is 255 characters.

As in this field, we can add multiple URLs with commas, so It will be good if we can increase the max length of the field.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#2 3424050-2.patch1.58 KBkeshavv
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

keshavv created an issue. See original summary.

keshavv’s picture

Status: Active » Needs review
StatusFileSize
new1.58 KB

I have increased the max length to 1024 characters Because it is stored as a blob in the database.
Please review.

damienmckenna’s picture

Title: Increase max length of SameAs field. » Add support for max_length attribute; increase max length of SameAs field
Status: Needs review » Needs work
Parent issue: » #3368793: Plan for Schema Metatag 3.1.0

Looks good. But I think it needs some API documentation.

This should go into a 3.1.x branch.

s_leu’s picture

We should probably also add this new max_length property to the Annotation class. Even better would be moving to attributes though.

nmangold made their first commit to this issue’s fork.

nmangold’s picture

Status: Needs work » Needs review

I created a fork for this issue, added the changes from the patch, and added the new property to the annotation class.