<p>My suspicion is that the <code>entry</code> you are defining is confilicting with the <code>entry</code> that Craft gives you as the entry that this template is displaying. Try this, and see if it helps:</p>

<pre><code>{% set blockLinkEntry = block.blockLink.first() %}
{% if blockLinkEntry %}
  &lt;p class="ctaLink"&gt;&lt;a href="{{ blockLinkEntry.url }}"&gt;Find out more&lt;/a&gt;&lt;/p&gt;
{% endif %}
</code></pre>

CC BY-SA 3.0
2017-10-04T09:14:11.440Z
I haven't tried this as the solution I used above was working. Thanks for your input.
Andrew
CC BY-SA 3.0
2017-10-03T23:08:18.400Z
2017-10-03T23:08:18.400Z
Marion Newlevant
<p>After trial and error I came up with this alternative: </p>

<pre><code>{% if block.blockLink|length %}
  &lt;p class="ctaLink"&gt;&lt;a href="{{ block.blockLink.first.url }}"&gt;Find out more&lt;/a&lt;/p&gt;
{% endif %}
</code></pre>

<p>This worked for me, but I'm not sure if it's the 'correct' method or not.</p>

CC BY-SA 3.0
2017-10-04T14:56:01.053Z
Both cases you are avoiding overwriting the `entry` that Craft has set for you. Either one is correct.
Marion Newlevant
CC BY-SA 3.0
2017-10-04T09:17:04.907Z
2017-10-04T14:23:33.500Z
2017-10-04T14:23:33.500Z
Andrew
<p>I've setup a Matrix field with an entries field and output the value like this:</p>

<pre><code>{% set entry = block.blockLink.first() %}
 {% if entry %}
  &lt;p class="ctaLink"&gt;&lt;a href="{{ entry.url }}"&gt;Find out more&lt;/a&gt;&lt;/p&gt;
 {% endif %}    
</code></pre>

<p>This outputs the value of the entries field OK. However any other Matrix field that follows on from this one fails to display at all. What am I doing wrong? Any advice gratefully received!</p>

CC BY-SA 3.0
2017-10-03T11:17:21.477Z
After trial and error I came up with this alternative: `       {% if block.blockLink|length %}
        <p class="ctaLink"><a href="{{ block.blockLink.first.url }}">Find out more</a></p>
       {% endif %}`
Andrew
CC BY-SA 3.0
2017-10-03T18:33:49.710Z
I'm not exactly sure I'm following, but would you mind adding what worked for you as an official answer?  Might help someone in the future.
Brad Bell
<matrix>
Matrix entries field prevents following Matrix field to display
# Matrix entries field prevents following Matrix field to display

(Asked by: username_0 on 2017-10-03)

I've setup a Matrix field with an entries field and output the value like this:
{% set entry = block.blockLink.first() %}
 {% if entry %}
  Find out more
 {% endif %}    

This outputs the value of the entries field OK. However any other Matrix field that follows on from this one fails to display at all. What am I doing wrong? Any advice gratefully received!

**Tags:** matrix
> **Comments:**
> **username_0**: After trial and error I came up with this alternative: `       {% if block.blockLink|length %}         <p class="ctaLink"><a href="{{ block.blockLink.first.url }}">Find out more</a></p>        {% endif %}`  
> **username_1**: I'm not exactly sure I'm following, but would you mind adding what worked for you as an official answer?  Might help someone in the future.  

---

## 2 answers

### Answer by username_2 on 2017-10-03. Score: 1

My suspicion is that the entry you are defining is confilicting with the entry that Craft gives you as the entry that this template is displaying. Try this, and see if it helps:
{% set blockLinkEntry = block.blockLink.first() %}
{% if blockLinkEntry %}
  Find out more
{% endif %}

> **Comments:**
> **username_0**: I haven't tried this as the solution I used above was working. Thanks for your input.  

---

### Answer by username_0 on 2017-10-04. Score: 0

After trial and error I came up with this alternative: 
{% if block.blockLink|length %}
  Find out more
{% endif %}

This worked for me, but I'm not sure if it's the 'correct' method or not.

> **Comments:**
> **username_2**: Both cases you are avoiding overwriting the `entry` that Craft has set for you. Either one is correct.  

---

