Add paywall structured data for Google crawlers

Created on 2 June 2023, about 1 year ago
Updated 19 March 2024, 4 months ago

Problem/Motivation

Google here describes how to provide structured data for paywall content:
https://developers.google.com/search/docs/appearance/structured-data/pay...

Wouldn't it make sense to integrate this into the module, at least as option or submodule?
What do you think?

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Active

Version

2.1

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Anybody
  • πŸ‡¦πŸ‡ΊAustralia akoepke

    I think it would make sense to have this added, it would be a configurable option.

    To add this, I will need to implement hook_page_attachments for adding the structured data.

    As the paywall operates on a per-field basis, the main challenge I can see is adding the wrapper classes.

    It will most likely be a few weeks until I am able to get onto this but I will put it on the list of improvements for the next release.

    As always, patches and contributions are also welcome.

  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

    Thanks @akoepke great to hear!

    Perhaps it might make sense to add this as sub-module to be enabled on demand and perhaps with a dependency on https://www.drupal.org/project/schema_metatag β†’ to solve this?

    Or custom-coded, I'm unsure.

Production build 0.69.0 2024