<p>Craft definitely doesn't give you these filtering tools when viewing a list of entries, but the building blocks exist within the framework to allow you to build your own solution. The most straightforward way I can think of would be to create a plugin with its own CP section and show the outstanding drafts there.</p>

<p>You can get a list of all drafts with this little bit of PHP:</p>

<pre><code>EntryDraftRecord::model()-&gt;findAll();
</code></pre>

<p>If you expose the list of drafts using a <a href="http://buildwithcraft.com/docs/plugins/variables" rel="nofollow">Template Variable</a>, you could then display links to each of them by doing this:</p>

<pre><code>{% set drafts = craft.myPlugin.getAllDrafts() %}

&lt;ul&gt;
{% for draft in drafts %}
    {% set draftEntry = craft.entries.getEntryById(draft.entryId)|first %}
    &lt;li&gt;
      &lt;a href="{{ draftEntry.getCpEditUrl() }}"&gt;{{ draftEntry.title }}&lt;/a&gt;
    &lt;/li&gt;
{% endfor %}
&lt;/ul&gt;
</code></pre>

CC BY-SA 3.0
2015-02-17T21:26:48.660Z
2015-02-17T21:26:48.660Z
Keith Bartholomew
<p>I have a client who wants to use an author (draft) -> editor (publish) workflow. </p>

<p>It appears that authors can update existing entries which will create a new draft of the entry. As an editor, I can then visit the edit page for that entry and select the new draft from the "revisions" drop-down.</p>

<p>This is great if I know that a new draft is waiting to be reviewed, but I couldn't find a way to discover which entries have new drafts.</p>

<p>Is there a way to view which posts have new drafts from the entries index? Otherwise what is the normal practice for editor-type users to know which entries have pending changes?</p>

<p>Thanks in advance!</p>

<entries><control-panel><user-interface>
Filtering by entries which have unpublished draft versions in the admin
# Filtering by entries which have unpublished draft versions in the admin

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

I have a client who wants to use an author (draft) -> editor (publish) workflow.

It appears that authors can update existing entries which will create a new draft of the entry. As an editor, I can then visit the edit page for that entry and select the new draft from the "revisions" drop-down.

This is great if I know that a new draft is waiting to be reviewed, but I couldn't find a way to discover which entries have new drafts.

Is there a way to view which posts have new drafts from the entries index? Otherwise what is the normal practice for editor-type users to know which entries have pending changes?

Thanks in advance!

**Tags:** entries, control-panel, user-interface


---

## 1 answers

### Answer by username_1 on 2015-02-17. Score: 3 | Accepted answer

Craft definitely doesn't give you these filtering tools when viewing a list of entries, but the building blocks exist within the framework to allow you to build your own solution. The most straightforward way I can think of would be to create a plugin with its own CP section and show the outstanding drafts there.
You can get a list of all drafts with this little bit of PHP:
EntryDraftRecord::model()->findAll();

If you expose the list of drafts using a Template Variable, you could then display links to each of them by doing this:
{% set drafts = craft.myPlugin.getAllDrafts() %}


{% for draft in drafts %}
    {% set draftEntry = craft.entries.getEntryById(draft.entryId)|first %}
    
      {{ draftEntry.title }}
    
{% endfor %}


---

