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
31
votes
3 answers

How to center text with Markdown?

How do you center an item with Markdown? I'm looking for a solution that works in Grav.
KylianMbappe
  • 1,896
  • 2
  • 15
  • 25
7
votes
3 answers

Docker PHP permissions

My php container does not have the permissions to write cache on the mounted volume. docker-compose.yml: version: '2' volumes: database_data: driver: local services: php: build: ./docker/php/ expose: -…
Max Heyer
  • 135
  • 2
  • 8
5
votes
1 answer

GRAV subnavigation

I try to make my first site with GRAV CMS. Now in my pages-folder it looks like this: home/default.md about about/seite1/default.md about/seite2/default.md Now, if i put the following code into my html-file, only the main points are showed in the…
eckstein
  • 117
  • 3
  • 9
4
votes
1 answer

How do I create a grav form without a corresponding page

I have a contact form in my footer which will be displayed on all pages. How do I do that? The documentation thinks that I always have one specific page responsible for the form. The form currently looks like this in twig:
Joe Eifert
  • 1,306
  • 14
  • 29
4
votes
1 answer

Grav CMS spoiler

How to do spoiler (hidden text or block) in Grav CMS with markdown or plugin? There isn't spoiler in official markdown and Markdown Extra (supported by Grav). I try spoiler like this but don't work with Grav. >! spoiler spoiler
mkczyk
  • 2,460
  • 2
  • 25
  • 40
3
votes
1 answer

IntelliJ change language mode same as VS Code

I'm working on a project(IntelliJ + Grav) which all base files are *.md, I have the need to just write HTML code in one of this MD files but I can find an option to change the syntax highlight or intellisense to trigger(emmet, tags, ...). In VS Code…
T04435
  • 12,507
  • 5
  • 54
  • 54
3
votes
1 answer

adding fontawesome pro to Grav CMS

I've just started learning Grav CMS and wanted to use FontAwesome Pro with the sites I've made, I do have a license and all the necessary files. I've added fontawesome-all.min.css to /user/plugins/admin/themes/grav/templates/partials/base.html.twig…
user5569788
3
votes
0 answers

Symfony import of YAML files losing bit chomping indicators

I am using a plugin for Grav CMS in conjunction with symfony/twig to import a yaml file with the following contents: sp: xyzsp: description: '' issuer: https://ssotest.com relay_state: "/" login_url: https://ssotest.com …
KoreMike
  • 91
  • 7
3
votes
1 answer

Navigation menu list in Grav

I am new to Grav and I am trying to get the basics. If I want the following page structure: root |_______ set1 | |___ page_10 | |___ page_11 | |___ page_12 | |_______ set2 | |___ page_20 | |___…
M.E.
  • 4,955
  • 4
  • 49
  • 128
3
votes
1 answer

Composer install for subfolders

Anybody knows how to composer install for all subfolders too? Does the composer support it? Now I need to execute this command in each subfolder or add all subfolder's vendor folder to git. I found solution in…
Sogl
  • 782
  • 3
  • 9
  • 29
2
votes
1 answer

Add custom HTML attribute to buttons of a Grav generated form

I created a Bootstrap form with the following footer:
2
votes
2 answers

Can I generate a references index/ book index from markdown to html (ideally in a static site)?

For an academic project, I would like to make an index. You know, that boring list of words that indicates in which pages every word listed is. This : https://www.pdfindexgenerator.com/what-is-a-book-index/. But for a website. My goal is, let's say,…
2
votes
1 answer

Grav CMS form Integraion with Recaptcha v3

I am using Grav form v2.16.4 - i want to integrate recaptcha v3 to it but it doesn't work. I have added the below field to it as in the documentation, please let me know if there is any issue in it? recaptcha: name: g-recaptcha-response …
2
votes
0 answers

How can I use the form plugin to have multiple forms in a page in the admin panel

I'm working on a grav plugin that works from the admin panel. I've added a new page to the admin nav sidebar with a custom template and I now want to add multiple forms to it with file upload. For testing purposes I started with a single form and…
2
votes
0 answers

Install grav localhost debian

I admit I'm not really a webmaster and I cannot run Grav on my localhost webserver. I followed deeply the installation instructions, but I always end up with the same error page: 'mbstring' extension is not loaded. This is required for Grav to run…
matteo
  • 4,683
  • 9
  • 41
  • 77
1
2 3
13 14