Forum


MM1
Posts: 5

TF Structured Data: custom field type: list

Hi,

For the "format" field, I use list type CF, which consists of three elements: EBook, Paperback, Hardcover, but none of these appears in the structured data. Instead it returns "bookFormat": "https://schema.org/Array"
Could it be because the TFSD cannot accept list type custom fields? Here is an example:

"workExample": {
        "@type": "Book",
        "isbn": "9787543321724",
        "bookFormat": "https://schema.org/Array"
    }

I have similar issue is with "eventAttendanceMode", "eventStatus" and "location" of the Event structured data:

    "eventAttendanceMode": "https://schema.org/ArrayEventAttendanceMode",
    "eventStatus": "https://schema.org/EventArray",
    
    location": {
        "@type": [
            "0"
        ]
    },


Also for the Book type the TFSD generates a description which includes text with full HTML markup like: <p><span style="font-size: 14pt;">, while the description for  Event comes without HTML. Could you please fix this?

View Attachment

Tech Fry
Posts: 24

Thank you for feedback. We are working on these issues.
We will release new version in next couple of hours.


Tech Fry
Posts: 24

We have updated the plugin.
Please check and let us know any other issues.


MM1
Posts: 5

I have checked for a new version: My Account -> Order ->Downloads, but it looks like there is only an old one: 1.1.6


Tech Fry
Posts: 24

You can download new version now. You can also update through Joomla update system.


MM1
Posts: 5

Thanks for the quick fix! The issue with Book's HTML markup is gone, but for the VideoObject and presumably for all other types still here. The TFSD still can't handle list type fields properly, it looks like the TFSD takes index number instead of text: "bookFormat" returns "https://schema.org/2" instead of "https://schema.org/Paperback" "eventAttendanceMode" returns "https://schema.org/0EventAttendanceMode" instead of "https://schema.org/MixedEventAttendanceMode" "eventStatus" returns "https://schema.org/Event0" instead of "https://schema.org/EventScheduled"


Tech Fry
Posts: 24

Please share screenshot of custom fields list type for bookFormat where you have entered options.


MM1
Posts: N/A

Please see the screenshot below

View Attachment


MM1
Posts: N/A

Article view

View Attachment


Tech Fry
Posts: 24

While entering list options in the custom field - in the value, instead of 0, 1 or 2, enter AudiobookFormat, EBook, Hardcover, Paperback.
Then open the article, save the custom field value. It should work.


MM1
Posts: N/A

It works! Thanks!


MM1
Posts: N/A

I have replaced $json["description"] = $article->introtext; with $json["description"] = strip_tags($article->introtext); for the VideoObject. Please consider adding this.


MM1
Posts: N/A

Structured Data tool showing error on Event : startDate 2020-08-12T12:00:00 is missing a time zone. Date should be in ISO 8601 format (including timezone). As a quick fix I have replaced $json["startDate"] = $custom[JText::_('PLG_CONTENT_TFSD_START')]; with $json["startDate"] = $custom[JText::_('PLG_CONTENT_TFSD_START')] . "+03:00"; it works fine for me, but you may want to add some other way for users.

View Attachment


Tech Fry
Posts: 24

Thank you for feedback. We are working on these issues. Will be fixed in next update.


Login to Reply