Drupal is a registered trademark of Dries Buytaert

partial_access

2 sites No security coverage
View on drupal.org

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

  1. Install via Composer:
    composer require drupal/partial_access
  2. Enable the module via Drush:
    drush en partial_access

    or through the admin UI

  3. Visit Configuration → Partial Access Settings to:
    • Select which roles can access full content
    • Set the CTA message for restricted users

Recommended Modules

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.

Activity

Total releases
2
First release
Jun 2025
Latest release
9 months ago
Release cadence
0 days
Stability
50% stable

Releases

Version Type Release date
1.0.0 Stable Jun 2, 2025
1.0.x-dev Dev Jun 2, 2025