Questions tagged [batch]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
9 views

Batch check date and alter entries

Good Evening. Im looking for a way to regularly check a full section of entries to see if a date has been passed. If it has I want to place a checkbox marker within that entry. Has anyone come ...
1
vote
1answer
48 views

Lowering memory usage on task batches

I build a plugin for Craft 2 which imports data from an excel file into craft commerce products. The problem is that it needs to import excels with like 10.0000 rows and 30 columns. I made a simple ...
1
vote
1answer
642 views

Use Twig's batch filter with conditional

I am trying to make a grid of blocks using Twig. I have different types of blocks so I am using a conditional to test the block type and render different components per block type. The problem I am ...
1
vote
1answer
247 views

Attempting to create a complicated grid layout with batch

I'm trying to create the following layout using batch, but I can't quite get it right... This is how far I've gotten: {% for entry in items|batch(3) %} <div class="row rowDivider"> {% ...
1
vote
2answers
337 views

Wrapping a matrix block

I'm outputting fields from a Matrix block, how do I then wrap all outputted fields from 'artworkFile' that are available with some HTML. Not individually wrapped, but all outputted fields. Current ...
1
vote
1answer
820 views

Create a new row every 3 items in a matrix

I need to output a row every three items in a matrix. Here is what I have so far. The problem is that this outputs a row every three items but it duplicates each matrix item three times and puts them ...
0
votes
1answer
163 views

Craft plugin controller for batch update users break with empty page

I made a plugin to update my 3000 users. It is kind of a toolbox to manage and update some users fields. I am calling the controller directly through its url action. It is working basically but it ...
1
vote
1answer
368 views

Add batch filter as variable

I want to add a batch filter with a variable number depending on a conditional. Is this even possible this way: {% if category.id == '647' %} {% set nr = '5' %} {% else %} {% set nr = '4' %} {...