symfony - Twig batch filter with if condition for creating 3 columns gallery table -


I want to create a gallery with three columns and I have used the twig batch filter, is it possible to add such a condition Which does not list all disabled images? My example is not working:

  & lt; Table & gt; {% 3 for items in content.galleries. Batch (3) if item Capable}}} & lt; Tr & gt; {% In cells for%} and  gt; & Lt; Img src = "{{property (cell.image)}}" & gt; & Lt; / Td> {% Endfor%} & lt; / Tr & gt; {% Endfor%} & lt; / Table & gt;  


Comments

Popular posts from this blog

Member with no value in F# -

java - Joda Time Interval Not returning what I expect -

c# - Showing a SelectedItem's Property -