Skip to content
Discussion options

You must be logged in to vote

right now the folks reviewing Drafts have to go to the Source, manually select "Drafts" from the statuses to see all the drafts.

Unpublished drafts are included in the “All” status as well — so long as they have been edited whatsoever beyond their initial new entry state.

I've tried leaning on Entry::EVENT_REGISTER_SOURCES to customize the query

To only show unpublished drafts, you need to include 'draftOf' => false in the criteria:

Event::on(Entry::class, Entry::EVENT_REGISTER_SOURCES, function (RegisterElementSourcesEvent $event) {
    $event->sources[] = [
        'key' => 'unpublished-drafts',
        'label' => 'Unpublished Drafts,
        'criteria' => [
            'drafts' => t…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by brandonkelly
Comment options

You must be logged in to vote
3 replies
@brandonkelly
Comment options

@BenParizek
Comment options

@brandonkelly
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants