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). 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). Varbase FAQs 9.2.1 Minor update available for module varbase_faqs (9.2.1). 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.

View Publish Toggle

4 sites Security covered
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.

Activity

Total releases
2
First release
Oct 2025
Latest release
9 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Slowing

Releases

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