Open steirico opened 5 years ago
This feels very wrong but it works for me:
I just remove the objects with the name "cropped" out of the collection. It will render the cropped images anyhow.
$items = $page->images();
foreach ($items->search('cropped') as $cropped) {
$items->remove($cropped);
};
foreach($items as $image) {
[...]
You can also run $page->images()->filterBy('filename', '!*=', '-cropped-')
to filter out the cropped images.
Hi Steirico,
Have you found a solution or maybe a workaround for this issue ?
And thanks for the work put in the plugin, it's exactly what I need for a project I'm working on.
Cheers