Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Page.modular don't work as expected

Started by Muut Archive 10 years ago · 1 replies · 370 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 2304 9 years ago
Archive · by Muut Archive, 9 years ago
2 1509 9 years ago
Archive · by Muut Archive, 9 years ago
2 4766 9 years ago
Archive · by Muut Archive, 9 years ago
1 3583 9 years ago
Archive · by Muut Archive, 9 years ago
3 1640 9 years ago