nystudio107 / craft-seomatic

SEOmatic facilitates modern SEO best practices & implementation for Craft CMS 3. It is a turnkey SEO system that is comprehensive, powerful, and flexible.
https://nystudio107.com/plugins/seomatic
Other
162 stars 68 forks source link

JSON-LD Meta: Add support for "CourseInstance.CourseSchedule" #1420

Closed PiessensLander closed 4 months ago

PiessensLander commented 4 months ago

Is your feature request related to a problem? Please describe.

I'm integrating the meta info for a Courses page using the JSON-LD function. When trying to add a courseSchedule, nothing happens because the property doesn't exist in the SEOMatic codebase.

Describe the solution you would like

Add support for the courseSchedule in /src/models/jsonld/CourseInstance.php

Describe alternatives you have considered

Manually adding the required properties, but this doesn't work.

Additional context

More info about CourseInstance: schema.org

khalwat commented 4 months ago

It must be a relatively newly added property for schema.org. Do you know what version it was added in?

PiessensLander commented 4 months ago

@khalwat looks like it was added in version 17.0 back in May 2023: https://github.com/schemaorg/schemaorg/issues/3314

khalwat commented 4 months ago

Addressed via the commits above

Craft CMS 3:

You can try it now by setting your semver in your composer.json to look like this:

    "nystudio107/craft-seomatic": "dev-develop as 3.4.72”,

Then do a composer clear-cache && composer update

…..

Craft CMS 4:

You can try it now by setting your semver in your composer.json to look like this:

    "nystudio107/craft-seomatic": "dev-develop-v4 as 4.0.41”,

Then do a composer clear-cache && composer update

…..

Craft CMS 5:

You can try it now by setting your semver in your composer.json to look like this:

    "nystudio107/craft-seomatic": "dev-develop-v5 as 5.0.0-beta.5”,

Then do a composer clear-cache && composer update