Warn about node--view suggestions that do not work

Created on 7 October 2024, about 2 months ago

API page: https://api.drupal.org/api/drupal/core%21modules%21views%21views.theme.i...

When a view is set to render nodes as content, Drupal produces template suggestions for the nodes that cease to work once caching is turned on. This can really ruin your day if you have not completely tested the site with caching turned on.

Until the issue is fixed, add a warning to the views template documentation (I can't find anywhere else to put this):

WARNING:
When a view is set to render nodes as "Content," you may see template suggestions for each node in the form: "node--view--VIEW-NAME--VIEW-ID.html.twig" and "node--VIEW-NAME.html.twig". Do not use these theme suggestions. They will stop working once you turn on caching for the site. See https://www.drupal.org/node/2728419 β†’ for a discussion of the issue.

πŸ“Œ Task
Status

Active

Version

10.3 ✨

Component

documentation

Created by

πŸ‡ΊπŸ‡ΈUnited States gbirch

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

Comments & Activities

Production build 0.71.5 2024