<p>I'm not sure I totally understand your issue, but give this a try in your Matrix code: </p>

<pre><code>{% for entry in block.projectsEntry %}
    &lt;a href="{{ entry[0].getUrl() }}"&gt;{{ entry[0].title }}&lt;/a&gt;
{% endfor %}
</code></pre>

<p>Are you getting any errors in devMode?</p>

CC BY-SA 3.0
2015-05-19T16:48:38.313Z
Thanks for the response. I am not getting any return errors. I edited my original post to help clarify
unsider
CC BY-SA 3.0
2015-05-19T01:34:53.283Z
2015-05-19T01:34:53.283Z
Aaron Berkowitz
<p>I've looked around a good bit to see if I could solve this problem on my own. I've managed to get close I believe, but I think I don't quite understand Craft's relationships.</p>

<p>Basically, I have a related projects section on my site. I'm allowing the user to select the related projects with an Entries tag within my matrix. I would then like to compare their selected Entries with projects already added to a Structure - then output attributes that exist only in the Structure.</p>

<p>This is as far as I've gotten:</p>

<p>My Structure Content</p>

<pre><code>{% for entry in craft.entries.section('homePageBanners').limit(3) %}
    {% for block in entry.banner.limit(3) %}

        {{ block.client }}
        {{ block.bannerImage }}

    {% endfor %}
{% endfor %}
</code></pre>

<p>My Matrix Entries Block:</p>

<pre><code>{% for entry in block.projectsEntry %}
    &lt;a href="{{ entry.getUrl() }}"&gt;{{ entry.title }}&lt;/a&gt;
{% endfor %}
</code></pre>

<p>I'm not sure how to compare them &amp; pull content based on what the user selects. I looked into relatedTo(), but didn't have much luck with that.</p>

<p>If that's not clear, I can try to be more specific -- please go easy on me, I'm pretty new to Craft.</p>

<p>EDIT:</p>

<p>Maybe this will help clarify
    {% for entry in block.projectsEntry %}</p>

<pre><code> {% for project in craft.entries.section('homePageBanners').limit(3) %}
  {% set relatedProjects = craft.entries.section('homePageBanners').relatedTo(project) %}
   {% for project in relatedProjects %}
    &lt;a href="{{ project[0].getUrl() }}"&gt;{{ project[0].title }}&lt;/a&gt;
   {% endfor %}
  {% endfor %}
 {% endfor %}
</code></pre>

CC BY-SA 3.0
2015-05-18T18:33:37.987Z
Still no luck with this unfortunately.
unsider
<matrix><structure>
Related Projects (Structure + Channel Matrix)
# Related Projects (Structure + Channel Matrix)

(Asked by: username_0 on 2015-05-12)

I've looked around a good bit to see if I could solve this problem on my own. I've managed to get close I believe, but I think I don't quite understand Craft's relationships.
Basically, I have a related projects section on my site. I'm allowing the user to select the related projects with an Entries tag within my matrix. I would then like to compare their selected Entries with projects already added to a Structure - then output attributes that exist only in the Structure.
This is as far as I've gotten:
My Structure Content
{% for entry in craft.entries.section('homePageBanners').limit(3) %}
    {% for block in entry.banner.limit(3) %}

        {{ block.client }}
        {{ block.bannerImage }}

    {% endfor %}
{% endfor %}

My Matrix Entries Block:
{% for entry in block.projectsEntry %}
    {{ entry.title }}
{% endfor %}

I'm not sure how to compare them & pull content based on what the user selects. I looked into relatedTo(), but didn't have much luck with that.
If that's not clear, I can try to be more specific -- please go easy on me, I'm pretty new to Craft.
EDIT:
Maybe this will help clarify
    {% for entry in block.projectsEntry %}
 {% for project in craft.entries.section('homePageBanners').limit(3) %}
  {% set relatedProjects = craft.entries.section('homePageBanners').relatedTo(project) %}
   {% for project in relatedProjects %}
    {{ project[0].title }}
   {% endfor %}
  {% endfor %}
 {% endfor %}

**Tags:** matrix, structure
> **Comments:**
> **username_0**: Still no luck with this unfortunately.  

---

## 1 answers

### Answer by username_1 on 2015-05-19. Score: 2

I'm not sure I totally understand your issue, but give this a try in your Matrix code: 
{% for entry in block.projectsEntry %}
    {{ entry[0].title }}
{% endfor %}

Are you getting any errors in devMode?

> **Comments:**
> **username_0**: Thanks for the response. I am not getting any return errors. I edited my original post to help clarify  

---

