Entity Reference Unpublished Warning (ERUP Warning)
Categories
Component ID
2647832
Component name
Entity Reference Unpublished Warning (ERUP Warning)
Component type
module
Maintenance status
Development status
Component security advisory coverage
covered
Downloads
469
Component created
Component changed
Component body
The problem
If you're logged in as an admin and you create some new content that references some unpublished content you might not even notice. But when an anonymous visitor views your content it will look broken.
+---------------+
| Widget |
+---------------+
| Title |
| Body |
| Related gizmo |
+---------------+
+---------------+
| Gizmo |
+---------------+
| Title |
| Body |
+---------------+
E.g. I create a widget that references an unpublished Gizmo. It looks fine to me, but anonymous visitors see a broken widget.
The fix
When an admin edits or views a node that references an unpublished node show a warning.
