In some use cases when the view attached to a node is empty, it may be helpful to display the view's empty text or even the altered footer of a view that contains a form to add a new item that would cause the attached view to not be empty (eg #1392768: question and answers (Q&A) feature & Origins theme tweaks which has an "Add new answer" form added below a list of answers to a question, whether or not answers have already been submitted).
The attached patch makes this an option on a per-view basis.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 1409556-attach-empty-b.patch | 3 KB | ezra-g |
| views-attach-show-empty.patch | 2.99 KB | ezra-g |
Comments
Comment #1
ezra-g commentedThe previous patch didn't access the 'is_empty' value properly when the node was being viewed.