Bläddra i källkod

https://assistance.opentalent.fr/browse/V8-1987

Olivier Massot 4 år sedan
förälder
incheckning
9f8ee5988f
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      ot_templating/Resources/Private/Templates/Content/Carousel.html

+ 2 - 2
ot_templating/Resources/Private/Templates/Content/Carousel.html

@@ -33,7 +33,7 @@
         <p>Carrousel</p>
 
         <div class="be-carousel-preview">
-            <f:for each="{v:content.resources.fal(field: 'images', uid: '{record.uid}')}"
+            <f:for each="{v:content.resources.fal(field: 'images', record: '{record}')}"
                    as="image"
                    iteration="iterator">
                 <f:if condition="{v:variable.pregMatch(pattern: '/.*(?:jpe?g|gif|png)$/', subject: image.url)}">
@@ -54,7 +54,7 @@
 
         <div class="center-carousel">
             <div class="carousel" style="max-width:{width}px; max-height:{height}px">
-                <f:for each="{v:content.resources.fal(field: 'images', uid: '{record.uid}')}"
+                <f:for each="{v:content.resources.fal(field: 'images', record: '{record}')}"
                        as="image"
                        iteration="iterator">
                     <div style="height: {height}px">