Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Page.modular don't work as expected

Started by Muut Archive 10 years ago · 1 replies · 314 views
10 years ago

Hello! I want to modify a base.html.twig template, so it will have a little difference when rendering modular pages. However, page.modular returns false in base.html.twig template and returns true only in modular block templates, where it should always return true. Is it a bug with page.modular() function?

10 years ago

page.template == 'modular' works like I want :)

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1362 9 years ago
Archive · by Muut Archive, 9 years ago
2 940 9 years ago
Archive · by Muut Archive, 9 years ago
2 4069 9 years ago
Archive · by Muut Archive, 9 years ago
1 2960 9 years ago
Archive · by Muut Archive, 9 years ago
3 1124 9 years ago