Rudy
01/10/2022, 9:52 AMHarings Rob
01/10/2022, 10:02 AM$block->imageObject('mediaFieldName', 'cropNameFromBlocksConfig')Harings Rob
01/10/2022, 10:02 AMRudy
01/10/2022, 10:17 AMRudy
01/10/2022, 10:19 AMhttps://i.imgur.com/xFGd9cG.png▾
ifox
01/10/2022, 10:20 AMHarings Rob
01/10/2022, 10:28 AMRudy
01/10/2022, 10:33 AMifox
01/10/2022, 10:35 AMRudy
01/10/2022, 10:36 AM@php
$images = $block->images('image', 'flex');
$image = $block->image('image', 'flex');
@endphp
@foreach($images as $image)
<div class="col-md-4 d-flex align-items-center justify-content-center">
<a href="{{ $block->image('source') }}" title="{{ $block->input('title') }}" class="service- details__image" rel="nofollow">
<img class="img-fluid" src="{{ $image }}" alt="{{ $block->input('alt') }}" title="{{ $block->input('title') }}">
</a>
</div>
@endforeachifox
01/10/2022, 10:39 AMimageObjectsRudy
01/10/2022, 10:39 AMRudy
01/10/2022, 10:39 AMHarings Rob
01/10/2022, 10:43 AMRudy
01/10/2022, 10:52 AMHarings Rob
01/10/2022, 10:57 AMRudy
01/10/2022, 11:00 AMRudy
01/10/2022, 11:00 AMRudy
01/10/2022, 11:01 AMhttps://i.imgur.com/VNacpqj.png▾
Rudy
01/10/2022, 11:03 AMRudy
01/10/2022, 11:03 AMRudy
01/10/2022, 11:06 AMRudy
01/10/2022, 11:06 AMHarings Rob
01/10/2022, 11:25 AMifox
01/10/2022, 11:26 AM$imageObjects = $block->imageObjects('image', 'flex');
foreach($imageObjects as $imageObject) {
$source = $imageObject->source;
$imageUrl = ImageService::getUrlWithCrop($imageObject->uuid, $imageObject->pivot);
}Rudy
01/10/2022, 6:21 PMifox
01/10/2022, 6:26 PMRudy
01/10/2022, 6:28 PMifox
01/10/2022, 6:31 PMRudy
01/10/2022, 6:34 PM