<p>Forgot to take the entry status into account + an additional check for the sectionhandle to cover the custom route.
This solved it for me, if you have a better suggestion I'm all ears.</p>

<pre><code>{% for link in block.slideLink.status('live', 'pending') %}
    {% if link.section.handle == 'events' %}
        &lt;a href="{{ siteUrl }}events/{{ link.slug }}" class="btn btn-sm btn-danger"&gt;lees verder...&lt;/a&gt; 
    {% else %}
        &lt;a href="{{ link.url }}" class="btn btn-sm btn-danger"&gt;lees verder...&lt;/a&gt; 
    {% endif %} 
{% endfor %}
</code></pre>

CC BY-SA 3.0
2014-12-02T01:06:45.880Z
2014-12-02T08:00:50.503Z
2014-12-02T08:00:50.503Z
erwinheiser
<p>This is somewhat related to this <a href="https://craftcms.stackexchange.com/questions/1639/how-can-i-display-a-pending-entry-in-my-entry-template">How can I display a &quot;pending&quot; entry in my &quot;_entry&quot; template?</a></p>

<p>I have an 'events' section where some entries have a future date - the above link solved my issue to get those listed in a sidebar and display single entries while ignoring the date. So far so good.</p>

<p>I have a homepage slider (a matrix field) where each slide can link to an entry - problem is those entries with a future date from the 'events' section are simply not showing up.(block.slideLink is my entries field inside the matrix)</p>

<p>Any ideas how to get around this?</p>

<pre><code>{% for block in entry.homeslider %}
    {% if block.type == 'slides' %}         
        &lt;div class="item {% if loop.first %}active{% endif %}"&gt;
        &lt;img src="{{ siteUrl }}assets/img/slide-1.jpg" alt="" /&gt;
            &lt;div class="k-carousel-caption pos-2-3-right scheme-dark"&gt;
                &lt;div class="caption-content"&gt;
                    &lt;h3 class="caption-title"&gt;{{ block.slideTitle }}&lt;/h3&gt;
                    &lt;p&gt;{{ block.slideIntro }}&lt;/p&gt;
                    &lt;p&gt;
                        {% for link in block.slideLink %}
                        &lt;a href="{{ link.url }}" class="btn btn-sm btn-danger"&gt;lees verder...&lt;/a&gt;                                               
                        {% endfor %}
                    &lt;/p&gt;
                &lt;/div&gt;
            &lt;/div&gt;
        &lt;/div&gt;
    {% endif %}
{% endfor %}
</code></pre>

<matrix><entry><datetime>
In a matrix, link to entries with a future date
# In a matrix, link to entries with a future date

(Asked by: username_0 on 2014-12-02)

This is somewhat related to this How can I display a "pending" entry in my "_entry" template?
I have an 'events' section where some entries have a future date - the above link solved my issue to get those listed in a sidebar and display single entries while ignoring the date. So far so good.
I have a homepage slider (a matrix field) where each slide can link to an entry - problem is those entries with a future date from the 'events' section are simply not showing up.(block.slideLink is my entries field inside the matrix)
Any ideas how to get around this?
{% for block in entry.homeslider %}
    {% if block.type == 'slides' %}         
        
        
            
                
                    {{ block.slideTitle }}
                    {{ block.slideIntro }}
                    
                        {% for link in block.slideLink %}
                        lees verder...                                               
                        {% endfor %}
                    
                
            
        
    {% endif %}
{% endfor %}

**Tags:** matrix, entry, datetime

---

## 1 answers

### Answer by username_0 on 2014-12-02. Score: 2

Forgot to take the entry status into account + an additional check for the sectionhandle to cover the custom route.
This solved it for me, if you have a better suggestion I'm all ears.
{% for link in block.slideLink.status('live', 'pending') %}
    {% if link.section.handle == 'events' %}
        lees verder... 
    {% else %}
        lees verder... 
    {% endif %} 
{% endfor %}


---

