Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-12-02T01:06:45.880Z
Answers.LastActivityDate: 2014-12-02T08:00:50.503Z
Answers.LastEditDate: 2014-12-02T08:00:50.503Z
Answers.UserDisplayName: erwinheiser
Body: <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>
  
Tags: <matrix><entry><datetime>
Title: In a matrix, link to entries with a future date
ThreadText: # 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?](https://craftcms.stackexchange.com/questions/1639/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' %}         
          <div class="item {% if loop.first %}active{% endif %}">
          <img src="{{ siteUrl }}assets/img/slide-1.jpg" alt="" />
              <div class="k-carousel-caption pos-2-3-right scheme-dark">
                  <div class="caption-content">
                      <h3 class="caption-title">{{ block.slideTitle }}</h3>
                      <p>{{ block.slideIntro }}</p>
                      <p>
                          {% for link in block.slideLink %}
                          <a href="{{ link.url }}" class="btn btn-sm btn-danger">lees verder...</a>                                               
                          {% endfor %}
                      </p>
                  </div>
              </div>
          </div>
      {% 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' %}
          <a href="{{ siteUrl }}events/{{ link.slug }}" class="btn btn-sm btn-danger">lees verder...</a> 
      {% else %}
          <a href="{{ link.url }}" class="btn btn-sm btn-danger">lees verder...</a> 
      {% endif %} 
  {% endfor %}
  
  ```
  
  
  ---
  
  