
This template is responsible for looping through available fields and print fields wrappers, labels and markup.

This template is used only if the view row style is set to "Fields". The default used template will vary based on the applied view style (grid, table, html list or unformatted). The second template is the style template.

(view content, header, footer, exposed form and attachments) This template is used for all views and contains the layout for the view. Views default templates are located under "/core/modules/views/templates/" folder. Here is a screenshot for the view final settings: Here is a screenshot for our view initial settings:Īfter saving the view we will click on "Content: Title" and uncheck "Link to the Content", then add the "Body" field. Under "Page display settings" choose (Display format: Unformatted list), (of: fields).

Drupal templates how to#
In this post, you will learn how to theme Drupal 8 views by overriding default views templates and use our own markup to build an accordion (based on bootstrap 3 accordion).
