Needs work
Project:
Schema.org Metatag
Version:
3.0.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
4 Mar 2024 at 14:57 UTC
Updated:
2 Jul 2026 at 12:45 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
ssaba commentedHere, I have tried this patch for the version 2.5.
Comment #3
stadoom commentedOur customer requires to set several Questions and Answers into the metatag using the Pivot option, so it is better not to limit these fields maxLength and change the field type to textfield.

Here is the patch for 3.0 version.
Comment #4
damienmckennaThis is the wrong approach - the parent PropertyTypeBase class shouldn't know about individual tags.
Comment #5
daluxz commentedThe patches in this issue didn't work for me.
We are using the FaqPage Questions and Answers with quite long tokens like:
- [node:field_paragraphs:entity:field_node_faq:0:entity:title];[node:field_paragraphs:entity:field_node_faq:1:entity:title];[node:field_paragraphs:entity:field_node_faq:2:entity:title];[node:field_paragraphs:entity:field_node_faq:3:entity:title]
- [node:field_paragraphs:entity:field_node_faq:0:entity:field_text_long_answer];[node:field_paragraphs:entity:field_node_faq:1:entity:field_text_long_answer];[node:field_paragraphs:entity:field_node_faq:2:entity:field_text_long_answer];[node:field_paragraphs:entity:field_node_faq:3:entity:field_text_long_answer]
So these fields run out of space very quickly.
I created a new patch in which a new parameter ("long") is added. Whenever a plugin uses this parameter, a textarea is used instead of a textfield, and the maxlength is removed in that case.
See the attached patch.
Comment #6
daluxz commentedComment #7
phjouPatch #5 is working for me.
Comment #8
aadesh.verma commentedWe can aslo do this by using hook_form_alter()
Comment #9
crisgc commentedThank you to daluxz for patch #5.
Based on it I made a small adjustment since the added "long" = TRUE line in Answer.php was missing the * docblock prefix, which causes Drupal's annotation parser to silently ignore it, resulting in the Answer fields still enforcing the 255 character limit.
Attaching a fixed patch based on #5 with just this one-line correction.
Comment #10
anybodyCould you please prepare a MR instead of using patches? We're in 2026 ...