Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-02-17T21:26:48.660Z
Answers.LastActivityDate: 2015-02-17T21:26:48.660Z
Answers.UserDisplayName: Keith Bartholomew
Body: <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>
  
Tags: <entries><control-panel><user-interface>
Title: Filtering by entries which have unpublished draft versions in the admin
ThreadText: # 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](http://buildwithcraft.com/docs/plugins/variables), you could then display links to each of them by doing this:
  
  ```
  {% set drafts = craft.myPlugin.getAllDrafts() %}
  
  <ul>
  {% for draft in drafts %}
      {% set draftEntry = craft.entries.getEntryById(draft.entryId)|first %}
      <li>
        <a href="{{ draftEntry.getCpEditUrl() }}">{{ draftEntry.title }}</a>
      </li>
  {% endfor %}
  </ul>
  
  ```
  
  
  ---
  
  