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
0 answers

PHP version supposedly wrong, but seems to be correct

I am trying to make a bash script on my server to clear the Grav cache. When I run it from the server, it works fine. But when I run it from my local machine, over SSH, I get an error: You are running PHP 5.6.36, but Grav needs at least PHP 7.1.3 to…
jcherfas
  • 15
  • 6
0
votes
2 answers

Does Grav CMS have a media library like Wordpress?

Does Grav CMS have a media library like Wordpress https://yadi.sk/i/9H_Y1Sdko6XrzA?
leshiple
  • 65
  • 1
  • 6
0
votes
1 answer

Bootstrap CSS not loading with Grav on web server

I have installed the Bootstrap Grav theme to my site's web server but the standard css won't load - any thoughts? It worked locally but when I re-install everything I still have this issue https://github.com/getgrav/grav-theme-bootstrap
J4G
  • 211
  • 5
  • 14
0
votes
0 answers

How to write Controller in GRAV CMS

I created a form and want to save submitted data in back-end //front-end {% extends 'partials/base.html.twig' %} {% block content %}
CL So
  • 3,647
  • 10
  • 51
  • 95
0
votes
1 answer

What's the best way to have two themes on a single Grav CMS site?

I can easily switch between themes, but it rewrites the entire site, can I assign a theme to a page? In that way I can have multiple themes
Jonathan
  • 6,741
  • 7
  • 52
  • 69
0
votes
1 answer

GravCMS - navigation.html.twig dropdown not visible

I've created a new Pure.css based Grav theme as described here. As they said here at 15. the dropdown should work by default. Actually it doesn't for me. In the rendered page, the navigation looks like this:
0
votes
1 answer

Define data-options@ from plugin config file

I made a simple Grav plugin to add some user information! I want to make new blueprints on template.html.twig This is a plugin config yaml file: enabled: false authors: - name: Author 1 desc: Description 1 - name: Author 2 desc:…
0
votes
0 answers

Is there a way to dynamically select values from YAML front matter in Grav using twig templates?

I am working with Grav and trying to dynamically select a specific array to use from a config variable based on the current active language. I know I can use if and else if statements, but I would rather not do that because each time another array…
Peter Kaufman
  • 752
  • 1
  • 6
  • 18
0
votes
1 answer

How to solve PHPModules error in Grav while installing it for the first time?

I am a first time user of Grav. 1. I downloaded the 'Grav' core. 2. Unzipped it to the root directory of Apache webserver (using latest XAMPP), 3. Modified the permissions to 777 in htdocs directory (using chmod -R 777 .) 4. Launched the…
karthi190
  • 61
  • 4
0
votes
1 answer

How to make parts of navigation appear using Grav

I'm working with Grav for the first time, so the Twig Sytnax etc. is still very new for me. I should style the navigation so that first a part of the word or the page name is displayed and with onhover the rest of the word should appear. (Example:…
Josie.La
  • 53
  • 1
  • 6
0
votes
1 answer

mod_security rule 981172 false positive

The mod_security configuration in Apache, on the CWP7.admin, generates a 403 access denied error when running Grav CMS: [Thu Mar 21 15:40:47.967502 2019] [:error] [pid 21727:tid 140715786946304] [client 186.67.206.59:57900] [client 186.67.206.59]…
ganar
  • 627
  • 8
  • 17
0
votes
1 answer

Pass .json config to external js for a grav theme

I'm currently building a Grav theme, in which a div should have the particle background from particle.js. As stated by the setup manual, the actual function call in the js to render the particles, requires a config file in .json format /*…
Dom42
  • 147
  • 11
0
votes
1 answer

GRAV git-sync plugin update crashing web-site, has anyone encountered/solved?

I've been using GRAV as a CMS for a small experimental site. I recently updated the git-sync plugin, and am suddenly stuck with a website that produces only errors, with no way to enter the admin gui (all web access to the site crashes with same…
martshal
  • 43
  • 4
0
votes
1 answer

When trying to browse the index.php page on brand new Grav install on IIS i only get a "http error 500" page

I am trying to use Grav CMS (https://getgrav.org/) on a Windows Server 2012 R2 with IIS. I unzip the grav core package and have moved it to my folder named grav in the following location: C:\inetpub\wwwroot\ When i try to launch the site i get the…
Gerry
  • 1
  • 2
0
votes
1 answer

TWIG / GravCMS: Use loop-variable of for-loop inside modular template

Here is my current code: {% for module in page.collection() %} {% set index = loop.index %} {{ module.content|raw }} {% endfor %} I'd like to access index inside the module.html.twig, or even better, the entire loop variable. How do I do…
Norman
  • 785
  • 7
  • 27