Policy proposal: Content listings should show unpublished content to editors

Created on 15 November 2024, about 1 month ago

Problem/Motivation

When creating a new view, by default Drupal includes a filter to only show published content. In many cases, it is more intuitive for content editors to see unpublished content included, ideally using the highlight color Drupal uses for unpublished nodes.

Currently the view in the events recipe uses the Drupal default (status) while the blog recipe's view uses the more flexible filter (status_extra).

Proposed resolution

Adopt, as a policy for Drupal CMS, a convention to use the "published or admin" filter (status_extra) instead of the published filter, so that editors with permission to see unpublished nodes will be able to see them in listings.

🌱 Plan
Status

Active

Component

Base Recipe

Created by

🇨🇦Canada mandclu

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @mandclu
  • 🇦🇺Australia pameeela

    I like this idea but I don't think we should do it yet, for two reasons:

    1. The pink shading for unpublished nodes is so weird and unclear. This is comprehensively documented in 🐛 "Unpublished" style of rendered entities is not accessible (and looks bad) Needs work . I worry that without an intuitive indication that something is unpublished, this could be confusing.
    2. The default for new views would still be 'Published', which also could be somewhat confusing. Perhaps once #1 is resolved we could see about changing the core default?

    Less concerned about #2 but it does feel like the defaults should match?

  • 🇦🇺Australia pameeela

    There was some further discussion of this in Slack when it was originally proposed, but the main concern was around how to convey visually to the editor that the content is unpublished, so they don't worry about why it's appearing.

    I discussed this recently with @lauriii and we decided that this ability to display unpublished content is somewhat of a Drupalism and probably not the expected behaviour. Quickly checked WP and Squarespace and both don't show drafts in the listings.

    Our new card style also overrides the pink shade for drafts, meaning there is no indication whatsoever to the user; so for this reason I think for now we will standardise on using the 'Published' filter. We can revisit this in the future but we won't have capacity to modify it for 1.0.

    Not 100% sure how to handle this issue but marking it won't fix to avoid confusion for now.

Production build 0.71.5 2024