<p>You would need to create a custom route in the Control Panel that matches the same basic routing as your entries. Then in the entry template, you need to add some extra code that pulls disabled entries. Something like below.</p>

<pre><code>{% if entry is not defined %}
    {% set entry = craft.entries.section('whatevs').uri(craft.request.url).status(null).first() %}
    {% if entry is null %}{% redirect '404' %}{% endif %}
{% endif %}
</code></pre>

CC BY-SA 3.0
2015-09-17T12:08:51.897Z
2015-09-17T12:08:51.897Z
Bryan Redeagle
<p>I'm looking answer because I need access for all user in database access to disable entries</p>

<p>This mean somebody will publish something and administrator will be change status for entires from live to disable and CMS will be send notification to user about that. When you user will be login to account will be see entires live and disable and access to this entries. Right now I can show every entries live and disable but when click link live entire go to template and work fine but when I click link disable entries to to 404 page.</p>

<p>Thanks for help,
SS    </p>

<craft-pro><craft-features>
How can I access disabled entries?
# How can I access disabled entries?

(Asked by: username_0 on 2015-09-17)

I'm looking answer because I need access for all user in database access to disable entries

This mean somebody will publish something and administrator will be change status for entires from live to disable and CMS will be send notification to user about that. When you user will be login to account will be see entires live and disable and access to this entries. Right now I can show every entries live and disable but when click link live entire go to template and work fine but when I click link disable entries to to 404 page.

Thanks for help,
SS

**Tags:** craft-pro, craft-features


---

## 1 answers

### Answer by username_1 on 2015-09-17. Score: 3

You would need to create a custom route in the Control Panel that matches the same basic routing as your entries. Then in the entry template, you need to add some extra code that pulls disabled entries. Something like below.
{% if entry is not defined %}
    {% set entry = craft.entries.section('whatevs').uri(craft.request.url).status(null).first() %}
    {% if entry is null %}{% redirect '404' %}{% endif %}
{% endif %}


---

