This feature is available if you have a Basic subscription plan or higher.
Using the View Bulk Operations module, you can add an additional field to your views, allowing you and your users to select multiple items. You can then select a configurable action for these items, such as deleting them from your website.
If a view uses the bulk operation field, each entry in the view has a check box in its displayed row.
To apply a bulk operation:
- Select one or more entries from the view. For example, you may have view that lists all of the unpublished blog entries on the website and includes a bulk operation field, with the Publish content and Delete items permissions.
- Select an operation to apply to the selected entries from the list of configured actions. For example, publishing the selected items.
To apply an action to all of the entries returned by the view, select the check box in the header row of the view.
- Click Execute to publish them.
If you want your users to be able to select multiple items from a view and then apply an operation to those items, you must add the bulk operations field to the view.
Preparing your site
- To use Views Bulk Operations, ensure that the Views module is enabled at Modules > Views, and then click Save configuration.
- To create views that allow you to apply actions to more than one displayed result, enable the Views Bulk Operations module at Modules > Views Bulk Operations, and then click Save configuration.
- You must be familiar with views and how to create them. For more information about views, see Using views.
Adding the bulk operations field
To add the bulk operations field to your view:
- Go to Structure > Views.
- Create a view or find the view that you want to modify and click edit.
- Select the view display that you want to modify, and expand its Edit details section.
- In the Fields section, click add.
- Select the Content: Bulk operations field.
- Click Add and configure fields.
- Expand the Views bulk operations section to select how the view displays the field.
- Expand the Selected operations sub-section to specify the available operations for the view.
- After you've configured the field, click Apply (all displays).
- On the edit page for the view, click Save.
Rearranging displayed fields
By default, the bulk operations field is created at the end of the list of fields associated with the view, and displays in the last column of the displayed view. To move the check box for bulk operations to another location in the view, such as the first column, you must rearrange the fields in the view.
To rearrange fields in a view:
- Go to Structure > Views.
- Find the view that you want to modify and click edit.
- Select the view display for the appropriate view, and then expand its Edit details section.
- In the Fields section, select rearrange.
- Drag the Bulk operations field to its new location in the list of fields.
- Click Apply (all displays).
- Click Save.
Configuring bulk operation actions
By default, the users with the administrator or site maintainer roles can apply any action to view items selected with the bulk operations field. To make actions available to other roles and their users, you must configure the permissions assigned to each action.
To view the list of available actions you can take on entries selected by the bulk operations field, and to configure their permissions, complete the following steps:
- Go to People > Permissions.
- The Actions permissions section displays all of the available actions your users can select in views that use the bulk operations field. You cannot add actions to the list.
- For each action, select or clear the check boxes for each of the roles defined for your website.
This allows or prevents users with these roles to perform these actions on selected view entries. Actions not selected for a role do not display in a view's list of actions for a user of that role.
- Click Save permissions.