Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
On #1957214: Title setting in views UI does not indicate when the title might be overridden, all the Views maintainers agree that handling an empty view (no results) is really not an "advanced" functionality. It's at least as common to configure this as it is to add headers and footers to the view.
Proposed resolution
Move it to the second column, after the header and footer sections. Patch in #16 implements this.
Remaining tasks
None.
Comment | File | Size | Author |
---|---|---|---|
#16 | views-1963368-16.patch | 1.49 KB | xjm |
#16 | interdiff.txt | 1.25 KB | xjm |
#10 | 1963368-2b.patch | 1.67 KB | xjm |
#4 | 1963368-4-between.patch | 1.62 KB | xjm |
#4 | between.png | 77.79 KB | xjm |
Comments
Comment #1
xjmIt might actually make sense to move above the header and footer.
Comment #2
dawehnerMy spontaneous guess would have been: put it into the middle between header and footer.
Comment #3
xjmDealer's choice.
Comment #4
xjmHaha, one of the three.
Comment #5
dawehnerI wanna have a drag and drop to configure the views UI!
Comment #6
xjmHahaha :D
Alright, so let's decide: Do we want the "no results" before, between, or after header & footer?
Comment #7
damiankloip CreditAttribution: damiankloip commentedMy vote is for after the header and footer.
Comment #8
dawehnerMy vote is: Not before header/footer.
Comment #9
damiankloip CreditAttribution: damiankloip commentedLooks like we are agreeing then, good news :)
Comment #10
xjmThen the lucky winner is...
This also seems the best to me, actually.
Comment #11
Bojhan CreditAttribution: Bojhan commentedJust wondering, for argument sake - why is it common functionality, and/or why was it thought initially not to be common functionality?
Comment #12
damiankloip CreditAttribution: damiankloip commentedMove this into the right order, below the header and footer, then we've got a deal!
Also. I'm not sure we need to declare all of the column arrays first, then add data to them after. I think we could keep the array order and not do that. That is definitely not to do with this issue though.
Comment #13
damiankloip CreditAttribution: damiankloip commented@Bojhan, I would say the empty area is possibly the most used of all the area types (header, footer, empty). I'm not sure about why that decision was made when the views UI was redesigned for views 3, so I can't shed light on that I'm afraid. Daniel will know more about that I think.
Comment #14
tim.plunkettIt's become best practice to add an empty area handler to every page view, for example, saying "There are no upcoming events." or something to that effect. It is less common for blocks. But I completely agree it should be in the second column.
Comment #15
damiankloip CreditAttribution: damiankloip commentedGood point, this does promote a better practice for view building.
Comment #16
xjmOops.
+1 that it is a best practice in most cases for page displays.
Comment #16.0
xjmUpdated issue summary.
Comment #16.1
xjmUpdated issue summary.
Comment #17
Bojhan CreditAttribution: Bojhan commentedCool, I never understood why it was this way either :)
Comment #18
webchickMakes sense to me, too, and I agree after header/footer makes more sense.
Committed and pushed to 8.x. Thanks!
Comment #19.0
(not verified) CreditAttribution: commentedUpdated issue summary.