craftcms / craftcms/cms

Bulk enable/disable action for Cards view in Matrix fields

Open
#18,807 2 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

authoring :writing_hand:
Dominant language
PHP
Stars
3.6k
Forks
705
Avg merge
1d 5h
Merged PRs (30d)
134

Description

In Craft 5.9, bulk selection was added to the Cards view mode in Matrix fields, with support for Copy, Duplicate, and Delete actions (see #18001).

However, Enable and Disable were not included in the bulk action set, even though they are available as single-card actions. This creates an inconsistency: authors can already bulk-delete cards they want gone, but must toggle enable/disable one at a time for cards they want to hide temporarily.

Proposed behavior:
When one or more cards are selected in the Cards view, the action toolbar should include Enable and Disable as bulk operations, consistent with how they appear in other Craft element indexes (e.g., entry listings in the control panel).

Use case:
Content editors managing large Matrix-based layouts (e.g., page builders, card grids) often need to temporarily disable several blocks at once — for seasonal content, A/B purposes, or staging a page rebuild. Without bulk enable/disable, this becomes tedious at scale.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the Cards view bulk-action implementation for Matrix fields and compare it with the existing behavior described in #18001 and bulk actions in control-panel entry listings. Done means selected cards expose Enable and Disable alongside the existing bulk actions and those operations work consistently for one or more cards.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend, content
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.