Customizable views area handlers ids

Created on 27 May 2025, 4 days ago

Problem/Motivation

Currently, when adding an area plugin to a view's display (like say for example a "text_custom" type area), Views automatically generates a machine name, based on the type of area, suffixed by an incremented number, corresponding to the number of areas of the same type already in place.

This works fine, until you decide to customize the output of this display, through a custom template.
Then, when deciding how to print the variable containing those areas, (for example {{ footer }}), you might decide to split those areas (for example, using {{ footer.area_text_custom }} somewhere inside your markup, then {{ footer.area_text_custom_1 }} elsewhere).

If later on you need to delete any or all of those areas, and don't re-create them all, using the exact same order, you will break this template customization.

Proposed resolution

The solution would be to leave it up to the site builder, through the UI, to set a pre-determined area handler id.

Feature request
Status

Active

Version

11.0 🔥

Component

views.module

Created by

🇫🇷France arousseau

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024