Skip to content

Instantly share code, notes, and snippets.

@mortendk
Last active September 10, 2017 20:51
Show Gist options
  • Save mortendk/37cdb508e407613816aa78103c53dd33 to your computer and use it in GitHub Desktop.
Save mortendk/37cdb508e407613816aa78103c53dd33 to your computer and use it in GitHub Desktop.
theming views
[base template name]--[view machine name]--[view display id].html.twig
[base template name]--[view machine name]--[view display type].html.twig
[base template name]--[view display type].html.twig2
[base template name]--[view machine name].html.twig
[base template name].html.twig
views styles
https://www.sitepoint.com/theming-views-in-drupal-8-custom-style-plugins/
view, named [viewname].
Style: [style].
Row style: Fields. Display: Page.
views-view--[viewname]--[display-id].html.twig
views-view--[display-id].html.twig
views-view--[viewname].html.twig
views-view.html.twig
views-view-[style]--[viewname]--[display-id].html.twig
views-view-[style]--[display-id].html.twig
views-view-[style]--[viewname].html.twig
views-view-[style].html.twig
views-view-fields--[viewname]--[display-id].html.twig
views-view-fields--[display-id].html.twig
views-view-fields--[viewname].html.twig
views-view-fields.html.twig
[base template name]--[view machine name]--[display id]--[field name].twig.htm
views-view-field--{views machine name}--{page or block machine name}--{field name}.html.twig
views-view-field--[fieldname].html.twig
views-view-field.html.twig
View, named [view-id].
Style: unformatted.
Row style: Fields.
Display: Page.
views-view--[view-id]--page.html.twig
views-view--page.html.twig
views-view--[view-id].html.twig
views-view.html.twig
views-view-unformatted--[view-id]--page.html.twig
views-view-unformatted--page.html.twig
views-view-unformatted--[view-id].html.twig
views-view-unformatted.html.twig
views-view-fields--[view-id]--page.html.twig
views-view-fields--page.html.twig
views-view-fields--[view-id].html.twig
views-view-fields.html.twig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment