Badges
Creator of Grav CMS + other things...
Recent posts
-
Update to Symfony 4
· 9 years ago
As answered on the Github issues, Symfony 4 has much stricter PHP requirements than Grav does. This means that we would have to only support PHP 7.1.3+, while currently, Grav supports PHP 5.5.9+. We
-
Trailing slash at end of URLs
· 9 years ago
This option is really only to handle external links that have a trailing slash to be redirected to the URL without it. While Grav 'supports' URLs with a trailing slash, the default URLs do not have t
-
Grav Meetup in Denver, CO - March 13th 2018
· 9 years ago
Steve Luiting has been gracious enough to provide a location for our Grav meetups and will be helping me co-host these events going forward. At this first meetup we want to chat about the Grav CMS in
-
Get the route path of a page
· 9 years ago
what are you trying exactly?
-
Fetch JSON from external source
· 9 years ago
You can't return a variable, twig function just return a string or an object. The $results you are already returning should work: {% set jobs = jobs() %} {{ dump(jobs) }} Should show you the result y
-
Included grav-logo.svg missing on extending theme
· 9 years ago
that was the use Grav\Common\Grav; line i mentioned that needed to be added. See this: https://github.com/getgrav/grav-theme-quark/blob/develop/quark.php BTW, in the future, use Devtools plugin to cr
-
Non latin characters in media (filenames)
· 9 years ago
Probably create an issue here: https://github.com/getgrav/grav/issues In the meantime use regular latin characters.
-
Display page.summary without images in partials templates
· 9 years ago
one option is to create a new custom header property like: title: My Title summary: My summary **intro text** without an image Then modify your Twig to use {{ page.header.summary|markdown }} Or you co
-
Included grav-logo.svg missing on extending theme
· 9 years ago
Ok, I hadn't tested it, and I was on the right track, but needed a smidge more logic: // Add images to twig template paths to allow inclusion of SVG files public function onTwigLoader() {
-
Fetch JSON from external source
· 9 years ago
This is really beyond the default capability of Twig which is a templating language. If you really MUST do it from Twig, you could create a plugin that uses a custom function. There are examples of