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.
The views-infinite-scroll-content-wrapper
wrapper is applied no matter view has or no results, as consequence rows
variable is not empty so view empty area is not displayed.
See example from Classy theme views-view.html.twig template:
{% if rows %}
<div class="view-content">
{{ rows }}
</div>
{% elseif empty %}
<div class="view-empty">
{{ empty }}
</div>
{% endif %}
Comment | File | Size | Author |
---|---|---|---|
#2 | no-wrapper-empty-rows-2701881-2.patch | 632 bytes | sdstyles |
Comments
Comment #2
sdstyles CreditAttribution: sdstyles at FFW commentedI propose to add wrapper only if view has results.
Comment #3
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commentedWorks as expected.
Comment #4
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commented