Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

View Publish Toggle

4 sites Security covered Drupal 10 · not 11
View on drupal.org

This module adds a simple toggle button to your Drupal views, allowing editors to quickly publish or unpublish content directly from listings. It works with any entity that has a published status and integrates seamlessly with Drupal's permissions.

Adds a publish toggle button to Views, allowing editors to quickly publish or unpublish content directly from view listings.

Features

The View Publish Toggle module lets editors change the publication status of content directly within Views listings — no need to open the full edit form.

Key Features:
- Adds a Publish/Unpublish toggle button to View result rows.
- Works with content, users, or any entity that has a “published” field.
- No additional configuration needed — just add the field formatter to your View.
- Fully integrates with Drupal’s permissions system.
- Lightweight and dependency-free.

Use cases:
- Editors managing large content lists who want to quickly hide or republish items.
- Administrators maintaining status tables or dashboards.
- Any workflow where “quick toggle” improves content moderation efficiency.

Post-Installation

After enabling the module:
1. Go to your View displaying content or entities.
2. Add the field that represents the Published status (e.g. Content: Published).
3. In the field settings, choose the formatter “Publish toggle formatter.”
4. Save and reload the View — you’ll see a clickable publish/unpublish switch for each row.
5. The editing persons needs the "toggle" permission as well the permission to edit the content itself.

No additional configuration page is required. Permissions are automatically respected.

Additional Requirements

- Requires Drupal 10 or higher.
- No external dependencies or libraries required.

Similar projects

Modules like Quick Edit and Workbench Moderation also allow editing publication status but are heavier and designed for complex workflows.
View Publish Toggle focuses on simplicity and speed — ideal for editors who only need a quick status switch in list views.

Supporting this Module

If you find this module helpful, please star it on Drupal.org or report issues and improvements via the project’s issue queue.
Open for contributions and patches.

Community Documentation

Demo and documentation will be added soon.
Developers are welcome to share tutorials or usage examples via the issue queue.

Firefox checkbox issue

Firefox has an irritating issue where a checked checkbox looks like an unchecked and vice versa. Use another browser to see the real state at the checkbox.
If you use firefox: Trust the word, not the switch.

Depends on

Dependencies of the latest stable release

  • node Drupal core
  • views Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Oct 2025
Latest release
10 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Slowing

Releases

Version Type Core Release date
1.0.2 Stable 10 Oct 16, 2025
1.0.0 Stable 10 Oct 12, 2025