1

I have a matrix block which has an asset field inside of it. I want to know how many assets are inside the block, is there a way to do so?

2 Answers 2

3

Yeah you should be able to do something like

{{ block.assetField|length }}

1

This is old but it looks like there was never an accepted answer. This seems to work for me.

{% set count = block.carouselImages.count() %}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.