UF 4.1 - Typo Extends Wrong Template in Twig Template Documentation


#1

On this page :

Twig Templates

The example code with

/app/sprinkles/site/templates/pages/about.html.twig

extends

default.html.twig

I believe it should extend

about.html.twig

since we are creating a new about page.

  • Mike

#2

Actually, if you’re completly replacing a template, you have to extend the same base file as the template you’re replacing.

Unless you want to partially extends a template file.


#3

I get it now. about.twig.html is overriding, not extending the original about.twig.html. The original is not set up to be extended.