Skip to content
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

Possibility to prioritise main entities #77

Closed
4 tasks done
brotkrueml opened this issue Nov 9, 2021 · 0 comments
Closed
4 tasks done

Possibility to prioritise main entities #77

brotkrueml opened this issue Nov 9, 2021 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation feature New feature or request

Comments

@brotkrueml
Copy link
Owner

brotkrueml commented Nov 9, 2021

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

On a blog post, an Article type is used to describe the content of that page. On the same page there are FAQ questions/answers available. To have Google show these FAQ items as rich snippets on a search result page, the type of the page must be of FAQPage. Since some days, the Google Search Console displays an error, when other types than Question are added to a mainEntity property (here: Article).

The Article type is embedded by a view helper from a page template, whereas the Question types are embedded via PHP from the content element. So they don't "know" each other.

Describe the solution you'd like

I can think of two solutions:

  1. Possibility to reset the main entities. Then the already added main entity types are moved to the default types. This has the drawback that, for example, the first added type has priority, and will then removed from main entity which is not correct.
  2. Possibility to use a priority flag when adding a type as main entity. When at least one type with priority is available at rendering time the unprioritised types are moved to the default types.

For now, I tend to implement the second variant.

Tasks

  • Prioritising a main entity via API is available
  • Prioritising a main entity in a view helper is available
  • The documentation is adjusted.
  • A feature entry in the changelog is available.
@brotkrueml brotkrueml added documentation Improvements or additions to documentation feature New feature or request labels Nov 9, 2021
@brotkrueml brotkrueml self-assigned this Nov 9, 2021
@brotkrueml brotkrueml changed the title Possibility to remove main entity Possibility to prioritise main entities Nov 9, 2021
brotkrueml added a commit that referenced this issue Nov 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant