Add paywall structured data for Google crawlers

Created on 2 June 2023, over 1 year ago
Updated 19 March 2024, 9 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.71.5 2024