Hi Greg, thanks for your answer.
That's exactly what I'm trying to do, but for some reason I'm not able to have my slider working at this point. This its the code:
<picture>
<?php foreach ($record['imagen_webp'] as $index => $upload): ?>
<source type="image/webp" srcset="<?php echo htmlencode($upload['urlPath']) ?>">
<?php endforeach ?>
<?php foreach ($record['imagen'] as $index => $upload): ?>
<source type="image/jpeg" srcset="<?php echo htmlencode($upload['urlPath']) ?>">
<img src="<?php echo htmlencode($upload['urlPath']) ?>">
<?php endforeach ?>
</picture>
and here the result:
<picture>
<source type="image/webp" srcset="/cms/uploads/s-playas-en-mexico.webp">
<source type="image/jpeg" srcset="/cms/uploads/s-playas-en-mexico.jpg">
<img src="/cms/uploads/s-playas-en-mexico.jpg">
</picture>
So I'm seeing the proper result, but not the image. I'll continue to check it and keep you updated.. probably I'm missing something here in my code or so.