Questions tagged [grav]

Grav is a open-source, flat-file, PHP-based CMS.

Key Technologies

  • Twig Templating: for powerful control of the user interface
  • Markdown: for easy content creation
  • YAML: for simple configuration
  • Parsedown: for fast Markdown and Markdown Extra support
  • Doctrine Cache: for performance
  • Pimple Dependency Injection Container: for extensibility and maintainability
  • Symfony Event Dispatcher: for plugin event handling
  • Symfony Console: for CLI interface
  • Gregwar Image Library: for dynamic image manipulation

It's focus is on quick set-up and extensions via plug-ins and themes.

More Information

207 questions
0
votes
1 answer

Blank page on installing Grav

I have download grav zip file and extract it to my web server or local host.iam using fedora OS with PHP version 5.6.23.on navigating localhost/grav in browser,it shows a blank page.can anyone help me to solve this?
Moby M
  • 910
  • 2
  • 7
  • 26
0
votes
1 answer

grav: Runtime Exception (400) after renaming files

After creating a new theme using devtools: Renamed user/pages/01.home/default.md to home.md Copied default.html.twig in user/themes/xyz/templates to home.html.twig Expected no change at all, cause I haven't changed the twig-file. I get an error…
user414873
  • 741
  • 8
  • 20
0
votes
1 answer

How to trim the protocol from a URL in a Twig Template for Grav CMS

I'm needing to output a URL without the protocol (http: or https:) from a twig template usin Grav CMS. What is the best way to do this? Twig provides a MATCH function for comparisons that uses regex, and a REPLACE function that does not use…
Jeff Wilkerson
  • 376
  • 2
  • 18
0
votes
1 answer

GRAV custom fields / html blocks / custom theme templates

I'm trying to build a static website using the GRAV CMS. So far, I've been creating *.html.twig files and associating a single page to the individual template. This is how my pages look: {% block header%} {% include…
0
votes
1 answer

How can I pass dynamic variables to Scripts via Asset Manager

I want to add some script to Grav using some parameters. {% do assets.addInlineJs('var imageurl = "'.{{ url('theme://images/logo.svg') }}.'";', 99) %} This and some other things like {% do assets.addInlineJs('var imageurl = "' .…
campino2k
  • 1,618
  • 1
  • 14
  • 25
0
votes
1 answer

Centralized authentication to different application under different subdomains.

I have two applications running under the same base domain. docs.application.com goes to the documentation and it's written with PHP (Grav CMS). www.appliation.com goes to my application which is written with Node and React. Grav CMS has a Google…
Vinicius Santana
  • 3,936
  • 3
  • 25
  • 42
0
votes
1 answer

Permission denied in Apache instead of 777

I am having a hard time deploying a PHP website built using Grav on CentOS. Whenever I try to open the website I get 500 Server Error. The logs say: Uncaught exception 'RuntimeException' with message 'Creating directory…
Lokesh
  • 2,842
  • 7
  • 32
  • 47
0
votes
1 answer

Dockerfile for GRAV CMS

I am using Grav for blog and CMS, it is really a good markdown/flat CMS system. In the documents site of Grav, most of the deployment guide are targeting to hosted VPC or cloud VMs, however, I am thinking about a better way and would like to seek…
Frank Yu
  • 9
  • 1
0
votes
1 answer

GravCMS field unique ID

I'm building a modular template for an accordion menu in GravCMS. I need a generated unique identifier for for the id's; Is there anything pre-existing that I can call and use for the identifier? If not, do I need to create an extra field and…
dabonde
  • 359
  • 1
  • 11
0
votes
1 answer

How to do a PHP POST to external webapi in Grav CMS?

I'm really new to Grav CMS and I'm trying to figure out the best way to do a post request to an external webapi to pass form data. Normally I will have PHP Code that gets executed after a form submission and will do a post request to the webapi,…
Goca
  • 1,743
  • 2
  • 15
  • 36
0
votes
1 answer

Grav CMS - image questions/problems in partial template

New to Grav and am learning as I go, but have found little to no documentation on things I am trying to find out about :( I am putting together a blog as a test and modifying the existing antimatter theme. In /partials/blog_item.html.twig there are…
user756659
  • 3,372
  • 13
  • 55
  • 110
0
votes
1 answer

How to extend the Grav CMS Core

Is it any way of extend the Grav CMS without the usage of plugins or modify the core/system files. I would like to extend the following file: system/src/Grav/Common/Page/Medium/VideoMedium.php If I modified this file it is going to be replaced in…
Juan Lago
  • 960
  • 1
  • 10
  • 20
0
votes
2 answers

PHP (cli) version doesn't match XAMPP version I installed

Recently I installed XAMPP for doing local development on my Windows 7 machine. I honestly didn't think PHP was installed at all before hand. I installed the latest version of XAMPP and configured for php 5.6.24. I created some virtual hosts and…
ItsPronounced
  • 5,475
  • 13
  • 47
  • 86
0
votes
2 answers

PHP lists files that don't exist

I'm running Grav CMS on a Linode Ubuntu 16.04 server where PHP7 (php-fpm + nginx) returns cached results when listing directory contents. I first encountered the problem with FilesystemIterator, but it isn't limited to that class - the same problem…
fredrikekelund
  • 2,007
  • 2
  • 21
  • 33
0
votes
1 answer

Print Json as an HTML String with Angular

I am attempting to simply print single JSON objects as HTML strings. I am doing this in a twig template; so I have changed Angulars default output to {[{}]}. I am seeing all of the JSON when I view the app in ng-inspector, but I cannot get it to…
JoethaCoder
  • 494
  • 1
  • 6
  • 17
1 2 3
13
14