Remove more unneeded divs from around the whole view and the item listing as a whole

Created on 25 September 2023, over 1 year ago

Problem/Motivation

This module admirably gets rid of useless divs that surround each item, each row, of a view. It leaves a couple more unneeded divs from around the whole view and around the item listing as a whole (that is, wrapper div, then header, then wrapper div for items and the items (now without interstitial wrappers), then footer, then closing of the wrapper div. Would be nice if this module got rid of those also. (The block and container divs outside of all that would be out of scope for this module.)

Current workaround

Override views-view.html.twig to only print the divs if the view style is not plain:

{% if (style != 'plain_style') %}
  <div{{ attributes.addClass(classes) }}>
{% endif %}

(Note we will probably change the style name to 'plain' if we overhaul this module with a 2.x branch, and keep our templates within the views universe while we are at it.)

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mlncn Minneapolis, MN, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024