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

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -