1- @php
2- $containerAttrs = [
3- ' data-dot-object' => ' container' ,
4- ' data-dot-identifier' => $containerRef -> identifier ?? ' ' ,
5- ' data-dot-accept-types' => $containerRef -> acceptTypes ?? ' ' ,
6- ' data-max-contentlets' => $containerRef -> maxContentlets ?? ' ' ,
7- ' data-dot-uuid' => $containerRef -> uuid ?? ' '
8- ];
9- @endphp
10-
11- <div {!! $dotCmsHelpers -> htmlAttr ($containerAttrs ) ! !} >
12- @foreach ($containerRef -> contentlets as $content )
13- @php
14- $contentAttrs = [
15- ' data-dot-object' => ' contentlet' ,
16- ' data-dot-identifier' => $content -> identifier ?? ' ' ,
17- ' data-dot-basetype' => $content -> baseType ?? ' ' ,
18- ' data-dot-title' => $content -> widgetTitle ?? $content -> title ?? ' ' ,
19- ' data-dot-inode' => $content -> inode ?? ' ' ,
20- ' data-dot-type' => $content -> contentType ?? ' ' ,
21- ' data-dot-container' => json_encode ([
22- ' acceptTypes' => $containerRef -> acceptTypes ?? ' ' ,
23- ' identifier' => $containerRef -> identifier ?? ' ' ,
24- ' maxContentlets' => $containerRef -> maxContentlets ?? ' ' ,
25- ' variantId' => $containerRef -> variantId ?? ' ' ,
26- ' uuid' => $containerRef -> uuid ?? ' '
27- ])
28- ];
29- @endphp
30-
31- <div {!! $dotCmsHelpers -> htmlAttr ($contentAttrs ) ! !} >
32- {!! $dotCmsHelpers -> generateHtmlBasedOnProperty ($content ) ! !}
33- </div >
34- @endforeach
35- </div >
1+ {{--
2+ Container template using SDK functionality for empty state handling and UVE compatibility
3+ --}}
4+ {!! $dotCmsHelpers -> renderContainer ($containerRef , $containerRef -> contentlets ?? [], $mode ?? null ) ! !}
0 commit comments