grav-theme-learn2 icon indicating copy to clipboard operation
grav-theme-learn2 copied to clipboard

Default template should exist

Open elmimmo opened this issue 8 years ago • 3 comments

Pages created with the Admin plugin default to the Default template, yet Learn2 has no such template. Navigating to pages the template of which has not been explicitely set to a non-default one leads to an error:

400 - Template "default.html.twig" is not defined.

Learn2 should therefore provide a Default template.

elmimmo avatar Jan 05 '17 16:01 elmimmo

The Learn theme is a very custom theme that only works with docs and chapter page types, so it's not really supporting default page types. There probably should be a way for Admin to ask the theme what is the default page type, on the other hand.

flaviocopes avatar Jan 08 '17 20:01 flaviocopes

Well, @mahagr at getgrav/grav-plugin-admin#447 said:

That makes default type a mandatory type -- you just cannot ignore it in theme.

😕

elmimmo avatar Jan 09 '17 14:01 elmimmo

Most themes do, Learn2 is a bit special.

Same as https://github.com/getgrav/grav-theme-learn2/issues/19

flaviocopes avatar Jan 11 '17 09:01 flaviocopes