If you enable the "recent comments" block on your site but there are no available comments to show yet, the block content is empty and therefore the block doesn't show at all.
I think this can be confusing to site administrators, who may try to enable the block while they are setting up their site (and have no comments yet), and then not understand why the block is not showing.
I know that I certainly found this confusing while working on #544360: D7UX dashboard module -- I was trying to drag this block into a dashboard region and was certain I had found a bug with that patch that meant the dashboard wasn't working correctly, but in fact, it was because the block had nothing to display in it. I don't even want to admit how much time I wasted trying to figure that out :)
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | recent-comments-empty-565642-5.patch | 555 bytes | David_Rothstein |
| #1 | recent_comments_empty.patch | 527 bytes | David_Rothstein |
Comments
Comment #1
David_Rothstein commentedHere is a simple patch.
Comment #2
ksenzeeI ran into the same thing. It is a bit of a WTF. I can't imagine when you'd want the recent comments block not to show up at all. The patch is RTBC, except that I don't want it to show up in the queue 2 seconds before code freeze.
Comment #3
dries commented"None found" sounds a bit computer-ish -- as if a computer had to search for comments and it didn't find any. Can we change it to something like: "No comments yet." or "There are no comments yet."?
Comment #4
webchickComment #5
David_Rothstein commentedWe shouldn't really say "no comments yet" since it might not be true - there still might be comments on the site.
However, the standard text that is now used elsewhere in core (including elsewhere in the comment module) in these kinds of situations is "No ___ available", and I think that works here too.
Comment #6
ksenzee"No comments available" seems fine.
Comment #7
webchickCommitted to HEAD. Thanks!