All Questions
3 questions
1
vote
1
answer
388
views
API - Update Asset Volume
Im trying to figure out how to move asset(s) to a different volume. Also if I move it will that affect the entries that are using the asset?
Here's what im using to target the asset:
$resourceImage = ...
1
vote
1
answer
482
views
How can I add programmatically a Tag after SAVE_ON event in case of Assets types
We have to update the Asset after the SAVE_ON event, and the
Craft::$app->elements->saveElement($asset);
Not seems to be working (it is getting timed out). So what is the best pratice to ...
1
vote
1
answer
261
views
Eager Loading Image Transforms In Plugin
The craft docs on eager loading show you how to eager load image transforms in twig.
{% set entries = craft.entries({
with: [
['coolImage', { withTransforms: ['transform'] }]
]
}) %}
...