Craft 3 - Matrix Block for currentUser I have a Matrix field named -> certificado

with block -> certificados

and fields -> nomeDoCurso, curso, certificado

My Matrix block has no entries but is associated with a user.





How can I fetch the content of the Matrix block for a particular user in the frontend?

I'm trying with:

{% for item in currentUser.certificado %}
    {{ dump(item) }}
{% endfor %}


But this is wrong.

How can I do it?
Well, many tries later, I found a way to do it.

{% for block in currentUser.certificado %}
&lt;div&gt;
    &lt;h3&gt;{{ block.nomeDoCertificado }}&lt;/h3&gt;
    &lt;h3&gt;{{ block.curso[0] }}&lt;/h3&gt;
    &lt;a href="{{ block.certificado[0].url }}" target="_blank"&gt;{{ block.nomeDoCertificado }}&lt;/a&gt;
&lt;/div&gt;
{% endfor %}


It is as simple as that :)