This PR can be summarized in the following changelog entry:
Added a possibility to configure full Yoast SEO functionality for custom records by adding a few lines to the TCA Overrides
For full explanation check the updated documentation
Tip: Checkout branch and run ddev docs to get the generated version
Relevant technical choices:
The setup of RecordUtility and RecordRegistry is based on the CategoryRegistry of core
The TCA for a registered record is expanded with a yoast_seo section with all the settings, in the frontend (and for updating database schema) these sections are read and converted to Record objects which are cached
Couldn't find another easy way of doing this, CategoryRegistry has its own hardcoded calls within core
Dropped support for PHP<7.4, this is for the upcoming major version 9
Test instructions
This PR can be tested by following these steps:
Following the documentation, configure for a record and see if all the backend fields are available and the frontend renders correctly (pagetitle, metatags, canonical)
Quality assurance
[X] I have tested this code to the best of my abilities
[ ] I have added unittests to verify the code works as intended
Summary
This PR can be summarized in the following changelog entry:
ddev docs
to get the generated versionRelevant technical choices:
RecordUtility
andRecordRegistry
is based on theCategoryRegistry
of coreyoast_seo
section with all the settings, in the frontend (and for updating database schema) these sections are read and converted to Record objects which are cachedCategoryRegistry
has its own hardcoded calls within coreTest instructions
This PR can be tested by following these steps:
Quality assurance
Fixes #507