Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
Ace A. Member
@gravnoobie · Joined 4 years ago · 10 posts · 4 topics · 0 reputation
Badges
Recent posts
-
Suppress template not found error for modular pages
· 3 years ago
Problem solved. I've found that the best way to handle compatibility support for modular templates is by creating two files: a modular.html.twig and a modular/default.html.twig. My modular.html.twig c
-
Suppress template not found error for modular pages
· 3 years ago
Update: if you did define a modular/default.html.twig, the theme does use that in place of the system fallback. I just needed to clear all cache to see the changes. However, when dumping the module ob
-
Suppress template not found error for modular pages
· 3 years ago
I found the culprit. The output is defined on `system/templates/modular/default.html.twig', which renders if the module template isn't found. The next step is to figure out how to make sure that if yo
-
Suppress template not found error for modular pages
· 3 years ago
I am currently building a theme compatibility behavior where a modular page, even those not supported by the theme, can dump the content of its modules into the page. I got the behavior I wanted, with
-
Can you create a default value file for page-level blueprints?
· 4 years ago
Grav allows you to define default values for theme-level configuration using theme-name.yaml in the theme root directory. Can you do the same for page-level blueprints? Like if you create a item.yaml
-
Access media made from a blueprint of type:file
· 4 years ago
Solved. this solution is based on Quark's logo partials. {# extract the media array #} {% set favicon = theme_config.media.favicon %} {# assign the uploaded file name to a variable #} {% set favicon_
-
Access media made from a blueprint of type:file
· 4 years ago
I have defined the following in my blueprints.yaml media: # load user assets for the theme type: tab title: Media fields: custom_favicon:
-
How to access theme blueprint attributes like author.name
· 4 years ago
Thanks. That worked.
-
How to access theme blueprint attributes like author.name
· 4 years ago
There is no way to access blueprint attributes from the objects in _context. however, I think I am close. In the partials folder in the admin plugin, the theme object behaves the same way as in the t
-
How to access theme blueprint attributes like author.name
· 4 years ago
I am making a base Grav theme, and I am doing something like this: <p>{{ theme.name }} made with ❤️ by {{ theme.author.name }}</p> But I could not get it to work in my theme partials twig