partial_access
Partial Access
Partial Access is a lightweight and flexible module for Drupal 11 that allows site owners to restrict full node content visibility based on user roles. Instead of relying on teaser fields or complex view modes, this module truncates the body field directly for unauthorized users and displays a customizable Call-to-Action (CTA) message or block.
This module is ideal for content creators, publishers, and membership-based websites who want to place content behind a paywall-style barrier—without requiring third-party payment gateways or additional content types.
Features
- Restrict full content visibility based on user roles
- Truncates the body field instead of using teaser or view modes
- Displays a customizable call-to-action (CTA) for unauthorized users
- Simple admin configuration UI
- Works with any content type using a body field
- No external dependencies or APIs required
Unique Capability
Site administrators can configure which user roles have access to full content. This enables targeted content restriction—such as placing articles created by specific user roles behind a controlled-access wall.
Use Cases
- Gated blog posts for anonymous or guest users
- Premium articles for members only
- Educational resources with tiered access
- Lead capture via CTA after partial content display
Installation & Configuration
- Install via Composer:
composer require drupal/partial_access
- Enable the module via Drush:
drush en partial_access
or through the admin UI
- Visit Configuration → Partial Access Settings to:
- Select which roles can access full content
- Set the CTA message for restricted users
Recommended Modules
- Webform – For adding contact or subscription forms
- Block Visibility Groups – For managing dynamic CTA display
Similar Projects
- Content Access – Offers permission control but no partial content display
- Teaser-based solutions – Require structured summaries and more configuration
Partial Access offers a unique, simple solution by working directly with the body field and providing straightforward configuration for site owners.