Forum


TF Structured Data: custom field type: list

Guest
51%
Posts: 51
  • TF Structured Data
September 03, 2020

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?

Joomla Fry
100%
Posts: 1076
September 02, 2020
Thank you for feedback. We are working on these issues.
We will release new version in next couple of hours.
Joomla Fry
100%
Posts: 1076
September 02, 2020
We have updated the plugin.
Please check and let us know any other issues.
3%
Posts: 3
September 02, 2020
I have checked for a new version: My Account -> Order ->Downloads, but it looks like there is only an old one: 1.1.6
Joomla Fry
100%
Posts: 1076
September 02, 2020
You can download new version now. You can also update through Joomla update system.
3%
Posts: 3
September 03, 2020
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"
Joomla Fry
100%
Posts: 1076
September 04, 2020
Please share screenshot of custom fields list type for bookFormat where you have entered options.
0%
Posts: 0
September 05, 2020
Please see the screenshot below
0%
Posts: 0
September 05, 2020
Article view
Joomla Fry
100%
Posts: 1076
September 05, 2020
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.
0%
Posts: 0
September 10, 2020
It works! Thanks!
0%
Posts: 0
September 10, 2020
I have replaced $json["description"] = $article->introtext; with $json["description"] = strip_tags($article->introtext); for the VideoObject. Please consider adding this.
0%
Posts: 0
September 10, 2020
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.
Joomla Fry
100%
Posts: 1076
September 15, 2020
Thank you for feedback. We are working on these issues. Will be fixed in next update.
Login to Reply