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…

#2118743: Twig debug output does not display all suggestions when an array of theme hooks is passed to #theme

or

#2752443: Incorrect order and duplicate theme hook suggestions

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

Comments

mlncn created an issue.

mlncn’s picture

Realizing this is almost certainly caused by the Drupal core bug of not listing Views template suggestions, so Skins isn't able to add its new ones.

Ideally we would use one of the core patches (and help get it in, finally).

But maybe we should add them manually in the meantime.

nedjo’s picture

Does the equivalent override work directly in the theme--that is, not the skin-specific one? If not, this is presumably one of the core bugs. If so, it might be an issue in Skins.

nedjo’s picture

But maybe we should add them manually in the meantime.

Like maybe add missing core ones in Twig Template Suggester?

nedjo’s picture

Possibly related: Views Templates.