- Issue created by @DamienMcKenna
- Status changed to Needs review
about 1 year ago 4:20pm 7 December 2023 - πΊπΈUnited States jrockowitz Brooklyn, NY
You can use the schemadotorg_jsonld_custom module to include custom and global JSON-LD.
- πΊπΈUnited States DamienMcKenna NH, USA
I did that, thanks for the suggestion.
What's weird is that I had to do this to make it work on the blog content type on this site that is being displayed as a @type BlogPosting:
node--CreativeWork: | { "publisher": { "@context": "https://schema.org", "@type": "Organization", "name": "My Organization Name", "url": "[site:url]", "logo": { "@type": "ImageObject", "url": "https://www.exampke.com/logo.svg" } } }
It didn't work when I used
node: |
ornode--blog: |
, onlynode--CreativeWork: |
. And I don't know why. - πΊπΈUnited States jrockowitz Brooklyn, NY
@see https://www.drupal.org/project/schemadotorg/issues/3406619#comment-15351959 β¨ Option (?) to output entity URL as a WebPage object Active
- πΊπΈUnited States jrockowitz Brooklyn, NY
Can this be marked as Fixed or Duplicate?
- πΊπΈUnited States DamienMcKenna NH, USA
I think some extra help text would be useful, or some documentation.
- πΊπΈUnited States jrockowitz Brooklyn, NY
Related #3 I am working on defining shared settings matching/finder API via \Drupal\schemadotorg\SchemaDotOrgSchemaTypeManager::getSetting
The goal is to universally allow all the below patterns to work in a predictable order. For custom JSON-LD, on 'entity_type_id', 'bundle', and 'schema_type' are applicable.
$patterns = [ ['entity_type_id', 'bundle', 'field_name'], ['entity_type_id', 'field_name'], ['bundle', 'field_name'], ['field_name'], ['entity_type_id'], ['bundle'], ['entity_type_id', 'schema_type', 'schema_property'], ['entity_type_id', 'schema_property'], ['entity_type_id', 'schema_type'], ['schema_type', 'schema_property'], ['schema_property'], ['schema_type'], ];
- Merge request !118Issue #3406816: Functionality for creating global JSON-LD definitions, e.g. for an organization β (Merged) created by jrockowitz
-
jrockowitz β
committed f0b59afd on 1.0.x
Issue #3406816: Functionality for creating global JSON-LD definitions, e...
-
jrockowitz β
committed f0b59afd on 1.0.x
- Status changed to Fixed
9 months ago 11:51am 24 March 2024 Automatically closed - issue fixed for 2 weeks with no activity.