I am using Drupal views to display grid of contents. I've a very strange issue, I've built a view and used "Grid" Format to display 3 column content. I am showing Content with Teaser view.
Now with Teaser view, it should render node.html.twig for each node rendered. It is working Ok as usual. But, regularly it's broken and the node is displayed by field templates (THEME HOOK: 'field') instead (THEME HOOK: 'node'), there's no "node.html.twig" html called.
If I clear cache, everything is back! So, I'm not getting what it's that breaks the view regularly.
This is causing issues since we use <article> tag in the node.html.twig to apply CSS changes. When view is broken, there's no <article> tag :(
Attached screenshot for both cases.
| Comment | File | Size | Author |
|---|---|---|---|
| Working_OK.png | 227.57 KB | sajalsoni | |
| Broken_Grid_Format.png | 1.05 MB | sajalsoni |
Comments
Comment #2
sajalsoni commentedComment #3
sajalsoni commentedComment #8
quietone commented@sajalsoni, I know it has been a while. Did you find the cause of the problem? If so, add a comment as it may help others.
To take this further, can you provide complete steps to reproduce the issue (starting from "Install Drupal core").
Thanks!
Comment #11
quietone commentedSince steps to reproduce the issue have not been provided since the issue was postponed 9 months. I'm marking the issue "Closed (cannot reproduce)".
If anyone can provide complete steps to reproduce the issue (starting from "Install Drupal core"), document those steps in the issue summary and set the issue status back to "Active" [or "Needs Work" if it has a patch, etc.].