When I use the Organization-Schema and test the result in Google's Structured Data Testing Tool, it states that an image is necessary. Can we add an ImageObject Field?
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | schema_metatag-2909561-4.patch | 2.19 KB | agarzola |
| #3 | schema_metatag-n2909561-3.patch | 1.1 KB | damienmckenna |
| #2 | Add-ImageObject-to-Organisation-Schema-2909561-2.patch | 1.24 KB | eric heydrich |
Comments
Comment #2
eric heydrichI've added SchemaOrganizationImage.php to schema_organization submodule. I added the Image, tested it in Google Structured Data Testing tool and it works fine.
Comment #3
damienmckennaThe patch didn't create the initial SchemaOrganizationImage.php file so the patch wouldn't work.
This recreates the file from the original SchemaArticleImage.php file.
Comment #4
eric heydrichAhh thank you.
Comment #5
damienmckennaNo problem.
Note: you might have needed to do "git diff HEAD" in order to see all of the changes.
Comment #6
agarzola commentedI’ve added an updated patch that adds a logo field, since that’s an acceptable alternative to image.
It also updates the previous patch to use capitalization in the label (Image instead of image) and sets the weight for both fields to
3so that it falls underneath all text fields (it was falling between telephone and url, which was a bit jarring).Comment #7
christophweber commentedPatch schema_metatag-2909561-4.patch from #6 works great for me, and the resulting JSON-LD validates. I'd say we have an MVP here ready to go.
On a side note: For LocalBusiness and its more granular derivatives Google recommends also outputting PriceRange, and of course we will want AggregateRating and ratingCount to achieve those vaunted stars in Rich Snippets, but that's another issue altogether discussed in https://www.drupal.org/project/schema_metatag/issues/2916438.
Comment #8
eric heydrichComment #10
karens commentedI switched the case of the labels back to lower case for consistency with other tags. I am using the case stipulated in Schema.org, not trying to uppercase labels. Otherwise this looks great. Thanks!
Comment #12
nikky171091 commentedHi Guys
Any one create the patch for Uploaddate field in ImageOject ..
Comment #13
summit commentedHi, made issue for D7, same problem; https://www.drupal.org/project/schema_metatag/issues/3086328. Greetings, Martijn