Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

This module restricts access to the full content of nodes based on user roles, truncating the body field and displaying a custom message for unauthorized users. It's designed for sites wanting to create paywall-like content barriers without complex setups or external services.

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
1 year ago
Releases (12 mo)
0 ▼ from 2
Maintenance
Dormant

Releases

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