- Issue created by @DamienMcKenna
- πΊπΈUnited States DamienMcKenna NH, USA
So I can add these to the JSON-LD output like this:
"image": "[node:field_top_image:entity:image:hero_image:url:absolute]",
In this case "field_top_image" is an entity reference field, "image" is the field for the image file on the media object as identified on the Image media type's field specifications, and "hero_image" is the image style that's used to render the image.
So the question is - can this output be easily output by customizing the UI?
- πΊπΈUnited States jrockowitz Brooklyn, NY
We could add a setting to output certain media types as the URL to the source and not a full https://schema.org/MediaObject
- πΊπΈUnited States jrockowitz Brooklyn, NY
We could enhance "Schema.org type entity references display" (https://schemadotorg.ddev.site/admin/structure/media/manage/image/fields) token.
media--image: "[media:image:url:absolute]",
Generally, I think people will decide to include the image's ImageObject or the image's URI sitewide.
- Status changed to Needs work
8 months ago 7:06pm 23 March 2024 - πΊπΈUnited States jrockowitz Brooklyn, NY
We might be able to adjust to 'schema_type_entity_references_display' to 'media--image' to be the image's url.
- πΊπΈUnited States jrockowitz Brooklyn, NY
I think we could support something like
schema_type_entity_references_display: block_content: entity paragraph--layout: none paragraph: entity media--ImageObject: '[media:field_media_image:entity:url]' media: entity Intangible: entity node--Thing: URL
- Status changed to Needs review
8 months ago 11:59pm 23 March 2024 -
jrockowitz β
committed 3e21567c on 1.0.x
Issue #3407113: Minimum steps to output image media reference field as a...
-
jrockowitz β
committed 3e21567c on 1.0.x
- Status changed to Fixed
8 months ago 12:33am 25 March 2024 Automatically closed - issue fixed for 2 weeks with no activity.