Muut
February 3, 2016, 10:23am
1
Greetings,
I get the following error when I use the “default” page file type in the Learn2 theme:
“400 - Template “default.html.twig” is not defined.”
I’m trying to create some “basic” pages for Contact Us and a Muut forums page; Chapter and Docs file types wouldn’t make sense for those.
Suggestions?
Muut
February 3, 2016, 10:44am
2
Create a user/themes/learn2/templates/default.html.twig
with
{% extends 'partials/base.html.twig' %}
{% block content %}
{% include 'partials/page.html.twig' %}
{% endblock %}
That should work.
Muut
February 3, 2016, 10:54am
3
Should be there by default I think
Muut
February 3, 2016, 11:05am
4
Nope, not there. But I’ll try to add the above and let you know. THX!
Muut
February 3, 2016, 11:08am
5
Seems to work ok … THX again!
Muut
February 3, 2016, 12:22pm
6
Yes. By “should be there” I mean, we should add it to the theme
Muut
February 3, 2016, 3:50pm
7
The learn2 theme is very specific to docs. There really is no need for ‘default’ because either a page is a topic or a chapter. Therefore only those are valid template types.
Muut
February 3, 2016, 3:50pm
8
BTW, for your about-us page, simply use a topic template and don’t include it in the ‘docs’ taxonomy.
Muut
February 5, 2016, 6:31am
9
Good point, I’ll try that … THX!
Muut
February 5, 2016, 6:33am
10
BTW, should maybe remove the “default” selection and make either Chapter or Docs the new default selection in the dropdown, that would fix the confusion.