Ole Vik Regular
Grav Core Team
Grav Forum Moderators
@OleVik · Joined 9 years ago · 313 posts · 2 topics · 106 reputation
Badges
Recent posts
-
FOUC on every page load
· 6 years ago
This has nothing to do with Grav directly, and all to do with processing and caching, as well as how the theme is constructed. The DOM is rendered first, then linked assets are called. Only once the b
-
Timeline plugin and Quark theme menu
· 6 years ago
The Timeline-template, and its underlying Event-template, is standalone, and as such does not by default integrate any theme-elements. However, the Timeline-template exposes both a header and a footer
-
A better honeypot field possible?
· 6 years ago
I found the honeypot-field to be failing in some instances too, so I use a customized security-question. Third-party services usually have better anti-spam protections than a basic form can provide, b
-
Pass data from .php code to html.twig code
· 6 years ago
How are you using the callAPI()-method? Which event is it hooked into? As mentioned, the onPageContentProcessed-event should be late enough to have access to Twig to pass in the data. You'll want to u
-
Pass data from .php code to html.twig code
· 6 years ago
As pamtbaau explained, you'll need to create the plugin. My code was an example of what you need to use in the plugin to pass the data to Twig.
-
Pass data from .php code to html.twig code
· 6 years ago
You'll need to load the data in a plugin, and pass it to Twig from there. Eg., in the onPageContentProcessed-event, use $this->grav['twig']->twig_vars['api_data'] = $api_data. It will then be ac
-
Is Grav down right now?
· 6 years ago
It was, briefly, but it should be back now.
-
Is there a way to create interactive flow charts?
· 6 years ago
There are at least three options: The Nomnoml-, Mermaid-, and Diagrams-plugin. The latter is deprecated, however. Each renders diagrams dynamically in the browser, rendering directly into the DOM thro
-
Is there a API endpoint I could use for a healthcheck?
· 6 years ago
Endpoints are fairly easy to create. What would a healthcheck entail? Running test to check the system is operational? Reporting on the environment and ecosystem?
-
Cannot run GPM on win cmd
· 6 years ago
Slash-direction is not a problem anymore on WIndows, but is this the right folder? You probably need to run the commands in the right folder, so cd C:/My/Grav/installation before you run these command