<p>It works identically to entries. </p>

<p>Here are a couple things you can do to troubleshoot:</p>

<ul>
<li><p>Make sure that <code>user</code> is set to the user account you’re expecting it is. You can double check that by outputting <code>{{ user.username }}</code>.</p></li>
<li><p>Make sure that you’re calling the right Matrix field handle, with the correct capitalization.</p></li>
<li><p>If you’re passing the <code>type</code> param, make sure you’re passing in the right Block Type handle.</p></li>
</ul>

CC BY-SA 3.0
2014-10-15T11:33:29.870Z
2014-10-15T11:33:29.870Z
Brandon Kelly
<p>Oh, sorry, 
I forgot to put the original values in administration panel. That is, I did not push +myMatrixfield and it turns out that the matrix field does not exist.</p>

CC BY-SA 3.0
2014-10-15T12:10:24.453Z
2014-10-15T12:10:24.453Z
Vitaliy  Badalov
<p>I created matrix field, put it in the user field. In the front-end page as usually write</p>

<pre><code>{% for block in user.myMatrixfield.type('myType') %}
   ................
{% endfor %}
</code></pre>

<p>but there is no output!
try to write <code>{% user.myMatrixfield|length %}</code> - outputs 0</p>

<p>In administration panel everything works.
How to get matrix field in user-profile front-end page?</p>

CC BY-SA 3.0
2014-10-15T06:30:00.650Z
How are you setting the user variable? Can you supply the template code for the page?
Jamie Wade
CC BY-SA 3.0
2014-10-15T11:21:24.723Z
way for the user does not need the same variable, the user simply
Vitaliy  Badalov
<users><matrix><user-profile>
Matrix field in user-profile front-end
# Matrix field in user-profile front-end

(Asked by: username_0 on 2014-10-15)

I created matrix field, put it in the user field. In the front-end page as usually write
{% for block in user.myMatrixfield.type('myType') %}
   ................
{% endfor %}

but there is no output!
try to write {% user.myMatrixfield|length %} - outputs 0
In administration panel everything works.
How to get matrix field in user-profile front-end page?

**Tags:** users, matrix, user-profile

> **Comments:**
> **username_1**: How are you setting the user variable? Can you supply the template code for the page?  
> **username_0**: way for the user does not need the same variable, the user simply  

---

## 2 answers

### Answer by username_2 on 2014-10-15. Score: 1

It works identically to entries.

Here are a couple things you can do to troubleshoot:

* Make sure that `user` is set to the user account you’re expecting it is. You can double check that by outputting `{{ user.username }}`.
* Make sure that you’re calling the right Matrix field handle, with the correct capitalization.
* If you’re passing the `type` param, make sure you’re passing in the right Block Type handle.


---

### Answer by username_0 on 2014-10-15. Score: 1

Oh, sorry,
I forgot to put the original values in administration panel. That is, I did not push +myMatrixfield and it turns out that the matrix field does not exist.


---

