Last active
January 6, 2024 14:18
-
-
Save josefglatz/16ae96456c16d5cbe90d030adbe12130 to your computer and use it in GitHub Desktop.
TYPO3 Fluid Easy Modulo (with ext:vhs)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<f:if condition="{i.cycle -> v:math.modulo(b: 3)} === 0"> | |
<div class="break-lg-up"></div> | |
</f:if> | |
<!-- without the last item --> | |
<f:if condition="({i.cycle -> v:math.modulo(b: 3)} === 0) && (!{i.isLast})"> | |
<div class="break-lg-up"></div> | |
</f:if> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You don't need vhs, just use the modulo operator
<f:if condition="({i.cycle} % 3 === 0) && (!{i.isLast})">