User tests: Successful: Unsuccessful:
Pull Request for Issue #20810. Redo of #20811 for 4.0.
Moves early return when no items are found to the layout. This way the layout is always rendered, allowing users to show custom content when no items are found.
Also removes previously unused message.
On a site without tagged items publish Tags - Similar
module.
Create module's layout override containing some custom code/message.
Check if the module is displayed.
Module is displayed.
Module not displayed.
Probably not.
Status | New | ⇒ | Pending |
Category | ⇒ | Language & Strings Modules Front End |
But it's the better solution, the layout should decide what it should do if the list is empty.
@brianteeman see discussion in #20811. If you're talking about empty module positions appearing in templates, we get them anyways. There's a PR #19416 for fixing that.
Labels |
Added:
?
?
|
I have tested this item
I have tested this item
I have tested this item
Title |
|
Title |
|
Status | Pending | ⇒ | Ready to Commit |
Status "Ready To Commit".
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-06-07 23:33:36 |
Closed_By | ⇒ | wilsonge |
Thanks!
I am not in favour of this change as we have had lots of requests to ensure that a module is not rendered at all if there is no content - this does the opposite