Template override suggestions not working for specific views

Created on 16 May 2022, over 2 years ago
Updated 26 May 2023, over 1 year ago

Problem/Motivation

 FILE NAME SUGGESTIONS:
   * views-view-unformatted--themename-exampleskin.html.twig
   * views-view-unformatted--themename-exampleskin.html.twig
   x views-view-unformatted.html.twig

Views not showing all suggestions is unfortunately not a surprise. However it also fails to work for the suggestion that ought to work:

views-view-unformatted--people--themename-exampleskin.html.twig

Where the name of the view is "people". Overriding all unformatted views is a bit too broad for some suggestions!

Perhaps with luck the same problem causing the suggestions not to be listed is causing this too, and one of the fixes will fix both…

πŸ› Twig debug output does not display all suggestions when an array of theme hooks is passed to #theme Needs work

or

πŸ› Incorrect order and duplicate theme hook suggestions Needs work

Steps to reproduce

Create a template for a specific view ID in your skin. It will not be applied.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
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

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024