Hi there,

first of all, congratulations for this module, it is superuseful.

I have just implemented the QAPage schema in a site, and for some reason, when I enter the following tokens:
main-entity text[node:body]
suggested-answer text: [node:comments:0:body]

It translates them into a list. This gives an error for the suggested answer in the Google tool, as shown in the screenshot attached.

Anybody knows how to proceed?

Thanks a lot in advance

CommentFileSizeAuthor
Capture2.JPG184.12 KBalgazaras
Capture.JPG95.98 KBalgazaras

Comments

algazaras created an issue. See original summary.

Steppico’s picture

This happens because the text is stored in an array that then is exploded by comma, hence if you're using commas in your Q or A, it's going to separate them :( it's a big flaw.

I suggested here to convert each commas to its ASCII code with a custom module. Google automatically convert those back to the character in the result page.

j.’s picture

Status: Active » Fixed

This could be closed now since the fix is already present: the delimiter doesn’t have to be a comma, and users can swap it out via the existing option on /admin/config/search/metatag/settings.

https://www.drupal.org/project/schema_metatag/issues/2976935
https://www.drupal.org/project/metatag/issues/3067803

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.