Thank you for the awesome module. It would be a great addition if Views was supported in regards to displaying all schema.org data from each entity in the view. Currently if the View is set to render the entity, only the last entity's data is set. Also support for other entity types would be great as well especially in regards to Commerce.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | knowledge_graph-views-and-entity-support-2820538-1.patch | 8.44 KB | focal55 |
Comments
Comment #2
focal55 commentedComment #3
focal55 commentedHere is rough draft patch that provides Entity support as well as Views support.
Entity Support:
The Bundle selection field on the mapping form now displays bundles from all installed entity types. There will be issues if a bundle name is used in multiple entities. I could not find a way around this in Drupal 7.
Views Support:
Using hook_views_post_render json-ld information will be added for any node entity that has a Knowledge Graph entity associated with it. There are drupal_alter hooks to allow developers to modify what to look for in the View in order to determine the entities found. This will allow other entity types to be used. It would be nice if the module auto detected but I could not think of a way at this time.
Very option to suggestions and critiques.