Currently after we install the module we have to add all contents one by one. Would it be possible to add all contents for a given content type at once?

This would save lots of time for the initial setup.

Or is there a way to do this?

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

RgnYLDZ created an issue. See original summary.

ighosh’s picture

If you enable entityqueue_smartqueue, and in admin/structure/entityqueue/add you select Smart Queue, whatever content you have, all of them will automatically be added. For example, if you have 20 nodes for a particular CT, all 20 items will be added as 20 subqueues. However, if you're using Simple Queue you will need to add every node one by one. Would the approach of being able to select checkboxes for each node for a CT be better? Please confirm.

amateescu’s picture

Title: Add all content at once » Implement a core action plugin for adding items to a subqueue
Version: 8.x-1.3 » 8.x-1.x-dev

Entityqueue provides a Add item to a subqueue Rules Action, so if you're using the Rules module you probably can do a bulk insert of items. This could be copied into a core action plugin, which would be available as a bulk operation on the /admin/content listing. Patches welcome :)

freelock made their first commit to this issue’s fork.

freelock’s picture

Title: Implement a core action plugin for adding items to a subqueue » Implement core action plugins to support ECA, others

Hi,

Came here looking for ECA plugins to add/remove items from a subqueue... hopefully nobody minds me hijacking the issue....

freelock’s picture

Status: Active » Needs review

Two core action plugins and one ECA condition plugin are pushed to this issue's fork:

- Action: Add Item to subqueue
- Action: Remove item from subqueue
- ECA Condition: Entity is in subqueue

... I implemented them for a customer's site, and they are working in ECA just fine for us now!

Note that you do need to know the subqueue ID to make use of them (I found it in the database, in entity_subqueue_field_data.queue)

Cheers,
John

amateescu’s picture

Status: Needs review » Needs work

I checked the code from the issue fork and it looks mostly ok, just this bit should be changed:

    $access = AccessResult::allowedIfHasPermissions($account, [
      "update {$subqueue->id()} entityqueue",
      'manipulate all entityqueues',
      'administer entityqueue',
    ], 'OR');

to

$access = $subqueue->access('update')'

Also, a MR should be opened from that issue fork so it can be merged :)

ankithashetty made their first commit to this issue’s fork.

ankithashetty’s picture

Status: Needs work » Needs review

Addressed comments from #7, thanks!

amateescu’s picture

Status: Needs review » Fixed

Merged into 8.x-1.x, thanks!

amateescu’s picture

Crediting @minorOffense for his work in #3215196: Add action plugins for subqueue operations (D9).

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.