Formatter is giving Serialized php json data for meta tags. Need to fix that.

Comments

krknth created an issue. See original summary.

aditya_anurag’s picture

StatusFileSize
new686 bytes

Please review the patch.

heykarthikwithu’s picture

Status: Active » Needs work

Tested the patch, the meta data is showing up in the below format.
[{"field_meta":"{"title":"title ","description":"desc","abstract":"abssss","keywords":"kart, karthik, kumar"}"}]

aditya_anurag’s picture

Assigned: Unassigned » aditya_anurag
aditya_anurag’s picture

Assigned: aditya_anurag » Unassigned
Status: Needs work » Needs review
StatusFileSize
new1.04 KB
new972 bytes

@heykarthikwithu,
thanks for reporting the issue.

We handled html markup as we need metatag as plain text.

heykarthikwithu’s picture

StatusFileSize
new1.86 KB
new1.75 KB

We have serialized data in the metatag value, and we will be converting the serialized data into the json data.
And this json data will be rendered in the twig file.
So instead of handling html markup at field formatter, we need the read the raw value from it in the twig file.
this is been implemented in the patch.

krknth’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me

  • heykarthikwithu committed 4f18eb9 on 8.x-1.x
    Issue #2628610 by aditya_anurag, heykarthikwithu, krknth: Serialized...
heykarthikwithu’s picture

Status: Reviewed & tested by the community » Fixed
rakesh.gectcr’s picture

Status: Fixed » Needs work

I need little more workaround with this.

rakesh.gectcr’s picture

Status: Needs work » Closed (fixed)