How to change the page layout (extend and include)

[edit|delete]

Yes. Views can extend and include other views in a tree like structure. The root of the tree is what we call a layout view. It is just an HTML file that you can edit as any other view using the administrative interface.

Example of view:

{{extend 'layout.html}}
<h1>Title</h1>
{{include 'footer.html'}}

A layout file must be something like

<html><head>....</head>
<body>
{{include}}
</body>


Post a comment