Carousel.html 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. {namespace v=FluidTYPO3\Vhs\ViewHelpers}
  2. {namespace ot=Opentalent\OtTemplating\ViewHelpers}
  3. <f:comment><!--
  4. -- Resources.fal ViewHelper --
  5. Voir: https://fluidtypo3.org/viewhelpers/vhs/master/Page/Resources/FalViewHelper.html
  6. --></f:comment>
  7. <v:page.resources.fal table="pages"
  8. field="media"
  9. uid="{page.uid}"
  10. as="images"
  11. slide="-1"
  12. limit="10" >
  13. <div class="carousel">
  14. <f:for each="{images}" as="image">
  15. <f:if condition="{v:variable.pregMatch(pattern: '/.*(?:jpe?g|gif|png)$/', subject: image.url)}">
  16. <div>
  17. <ot:imageP src="{image.url}"
  18. alt="{image.alternative}"
  19. title="{image.title}"
  20. class="carousel-img"
  21. height="500c"
  22. />
  23. </div>
  24. </f:if>
  25. </f:for>
  26. </div>
  27. </v:page.resources.fal>