Problem/Motivation
This is a fantastic module and provided needed functionality for my project. However, I need to be able to reference unpublished media as well. Luckily this wasn't difficult to accomplish. I've attached a patch that adds the feature and works as expected on my site (Drupal 10.1.8).
Steps to reproduce
- Install the patch.
- Go to a content type with a media reference field.
- Edit the media reference field.
- Change the reference method to "Unpublished Default" (consistent with changing the reference method for nodes and taxonomy terms).
- Click Save.
Proposed resolution
Patch attached!
Remaining tasks
Community feedback and testing.
User interface changes
Added "Unpublished Default" reference method for media entities.
| Comment | File | Size | Author |
|---|
Issue fork entity_reference_unpublished-3423302
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
jsutta commentedPatch attached.
Comment #4
dieterholvoet commentedI had to change the id to make it work, since the id was still the same one as the unpublished node selection handler. After that it worked.
Comment #7
dieterholvoet commented