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?


Yeah you should be able to do something like

{{ block.assetField|length }}

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.