[MOOSE-384] FE: Accordion Block Schema - #381
Closed
GeoffDusome wants to merge 2 commits into
Closed
GeoffDusome wants to merge 2 commits into
GeoffDusome wants to merge 2 commits into
Conversation
MlKilderkin
approved these changes
Aug 17, 2026
dpellenwood
approved these changes
Aug 18, 2026
dpellenwood
left a comment
Collaborator
There was a problem hiding this comment.
🍏 Nice use fo the Core HTML parser!
Contributor
|
Hey @GeoffDusome, just a heads up that Google deprecated the FAQ schema for most website types. I don't think it is harmful to still include this, but may not be worthwhile any longer. |
Contributor
Author
|
Decision has been made to drop support for Accordion block FAQ schema due to the above depreciation here. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this do/fix?
This pull request introduces support for generating FAQPage structured data (schema.org) for the
core/accordionblock when a new "Enable FAQ Schema" toggle is enabled. The main changes add both the backend filter to generate the JSON-LD schema and the editor control for users to opt in.FAQ Schema Support for Accordion Block:
Accordion_Filterclass that appends FAQPage structured data to thecore/accordionblock if the "Enable FAQ Schema" toggle is enabled. The filter parses the block's HTML to extract question and answer pairs and outputs the appropriate JSON-LD.Accordion_Filterin the block filters definition so it is applied when rendering blocks. [1] [2]Block Editor Enhancements:
core/accordionblock editor (editor.js) allowing users to enable or disable FAQ schema generation for each accordion instance.QA
Links to relevant issues
Screenshots/video:
Pull request checklist