view_publish_toggle
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.