Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
Matthew Appleton Member
@dezbat · Joined 9 years ago · 18 posts · 4 topics · 3 reputation
Badges
Recent posts
-
Apply body class from parent page?
· 8 years ago
OMG! managed to find a solution 🙂 Using page.header, so a bit of a workaround and there is probably another way, but if I assign the 'archive' to my index page and then put this if statement into the
-
Apply body class from parent page?
· 8 years ago
just wondering if there is another way to force child classes using frontmatter?
-
Apply body class from parent page?
· 8 years ago
@paul: {{ page.parent.body_classes }} thanks Paul — that isnt working however... if I demo the page structure it might help? Basically I have an index page (project-index.html.twig) that has a collec
-
Apply body class from parent page?
· 8 years ago
Having a look at 'parent' and 'use' in Twig, but cannot get these to behave so far... https://twig.symfony.com/doc/2.x/tags/use.html
-
Apply body class from parent page?
· 8 years ago
Hello I would like a child page to inherit / apply a body class being set in the parent template with this snippet: {% block body_classes %}{{ body_classes }}{% endblock %} {{ body_classes|parent }}
-
Again: Zend OPcache API is restricted by "restrict_api" configuration directive
· 8 years ago
Same here, running Serverpilot on Linode — changing to php 7.2 throws this error An exception has been thrown during the rendering of a template ("Zend OPcache API is restricted by "restrict_api" conf
-
Theme Inheritance with Quark theme and 1.4.0-beta.3
· 8 years ago
Hi @paulhibbitts — that works perfectly so far, many thanks...!
-
Theme Inheritance with Quark theme and 1.4.0-beta.3
· 8 years ago
Using the new beta 1.4.0-rc.1 tried making a new theme with inheritance from Quark and got these two errors... Template "@images/grav-logo.svg" is not defined in "partials/base.html.twig" at line 42.