-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closes #3644: Add schema_metatag global defaults using the az_seo module #3901
base: main
Are you sure you want to change the base?
Conversation
…file-and-as-a-dependency-for-az_seo' into issue/3644-alt
I think this PR should enable schema_organization and set global defaults. |
Recommended langcode: en
status: true
dependencies: { }
id: global
label: Global
tags:
canonical_url: '[current-page:url]'
schema_organization_name: '[site:name]'
schema_organization_parent_organization: 'a:6:{s:5:"@type";s:23:"EducationalOrganization";s:3:"@id";s:24:"https://www.arizona.edu/";s:4:"name";s:21:"University of Arizona";s:3:"url";s:24:"https://www.arizona.edu/";s:6:"sameAs";s:240:"https://www.facebook.com/uarizona,https://x.com/uarizona,https://www.instagram.com/uarizona,https://linkedin.com/edu/university-of-arizona-17783,https://www.youtube.com/universityofarizona,https://en.wikipedia.org/wiki/University_of_Arizona";s:7:"address";a:6:{s:5:"@type";s:13:"PostalAddress";s:13:"streetAddress";s:22:"1200 E University Blvd";s:15:"addressLocality";s:6:"Tucson";s:13:"addressRegion";s:2:"AZ";s:10:"postalCode";s:5:"85721";s:14:"addressCountry";s:2:"US";}}'
title: '[current-page:title] | [site:name]'
|
I agree that should be done. Maybe not in this PR since its out of scope of the original request but it should definitely be done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": "CollegeOrUniversity",
"name": "University of Arizona {{Department/College}}",
"url": "{{Department/College url}}",
"description": "{{Description of department/college}}",
"logo": "{{Department/College logo}}",
"image": "{{Image to represent department/college}}",
"sameAs": "{{comma separated social media URLs}}",
"address": {
"@type": "PostalAddress",
"streetAddress": "{{Street Address}}",
"addressLocality": "{{City}}",
"addressRegion": "{{2 letter state abbreviation}}",
"postalCode": "{{5 digits}}",
"addressCountry": "{{Country abbreviation}}"
},
"telephone": "{{+1-555-555-5555}}",
"email": "{{Department/College email address}}",
"parentOrganization": {
"@type": "EducationalOrganization",
"name": "University of Arizona",
"url": "https://www.arizona.edu/",
"address": {
"@type": "PostalAddress",
"streetAddress": "1401 E University Blvd",
"addressLocality": "Tucson",
"addressRegion": "AZ",
"postalCode": "85721",
"addressCountry": "US"
}
}
}
</script>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The address here vs the PR are different.
1401 E University Blvd
vs 1200 E University Blvd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is how I handled the following tokens
{{Department/College}}
-> [site:name]
{{Department/College url}}
-> [site:url]
{{Description of department/college}}
-> [site:slogan]
{{Department/College logo}}
->
{{Image to represent department/college}}
->
{{Department/College email address}}
->
{{+1-555-555-5555}}
->
{{comma separated social media URLs}}
->
{{Street Address}}
->
{{City}}
->
{{2 letter state abbreviation}}
->
{{5 digits}}
->
{{Country abbreviation}}
->
{{+1-555-555-5555}}
->
{{Department/College email address}}
->
modules/custom/az_seo/config/quickstart/metatag.metatag_defaults.node.yml
Show resolved
Hide resolved
Some special character checking for pipes, commas, ampersands, apostrophes, hyphens and parentheses would be good. |
Description
Release notes
Related issues
schema_metatag
global defaults foraz_quickstart
Using theaz_seo
Module #3644How to test
Types of changes
Arizona Quickstart (install profile, custom modules, custom theme)
Drupal core
Drupal contrib projects
Checklist