Problem/Motivation
I have to use paywall to restrict access of multimedia contents to be available only to users subscribed (members). When non members try to access those contents I need to display the paywall block I've created to give then the opportunity to login or subscribe to access those.
Following the setup steps documentation from drupal/role_paywall I noticed that the option to select a block to use as barrier no longer exists.
Steps to reproduce
1. composer require 'drupal/role_paywall:^2.1' ( Using drupal/core: ^9.5 ).
2. Module is installed and running on drupal app.
3. Created a new field for Multimedia Content Type called "Is premium content" and set it to boolean (default is true when creating new multimedia content)
4. Created a Basic Block with description "You need an active subscription to access this content".
5. Went to Paywall Configuration, set only users-members on roles to have access and selected Multimedia as Content Type.
- At this 5th step the documentation already shows the option to select a block to use as barrier, at Paywall Configuration. But this option is not currently available.
6. Continued to follow the doc anyways so : Selected "Is premium content" field to me marked behind paywall and the fields to be hidden by it.
- At this point the documentation shows again the option to select a block to use as barrier and again it was not there for me..
7. Tested the module by creating a new multimedia content and made sure the "Is premium content" was set to 'On'. But no success, the content still being shown when I try to access it when logged out.
8. Tried also to add "Is premium content" field to multimedia View, no success. Then tried to add a contextual filter with this same field, no success.
9. Since the Multimedia content Type and View uses created Medias, I also tried to configure paywall for Media Contents (but it doesn't have a boolean field since it's not a content type, not possible). But still no success.
This is the relation: Multimedia Content type with "Is premium content" boolean field + Multimedia View displaying Media items and want those items to be hidden behind paywall block with options to login or subscribe to see those medias.
Important to say that the module is working in a way, since I can completely hide a content using paywall configuration. The problem is that I need non members to be able to access the multimedia page showing the paywall block with the option to login or subscribe).
I don't know what else to do to make it possible for the paywall Block to be shown...
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes