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

Grav pages cannot be displayed under wordpress home folder

I created a wordpress vm using amazon-lightsail. The wordpress instance is accessible. I moved a previous Grav installation under /home/bitnami/apps/wordpress/htdocs/doc folder. I am expecting to access the Grav using https://MYDOMAIN/doc. When I…
Halil
  • 1,795
  • 1
  • 24
  • 39
0
votes
1 answer

Grav and Foundation SASS, how does it work?

I've installed Grav (https://getgrav.org/) via composer. I've created my own theme so I can start from scratch. But now I want to use the media queries (breakpoints), flex grid, rem-calc() function, equalizer form Foundation Zurb. I've installed…
Lenzork
  • 15
  • 5
0
votes
1 answer

grav cms materilaize.css img caption in twig

I am using Grav Cms w/materilaize.css. For image capition I need the following html syntax in materialize:
karzol73
  • 55
  • 1
  • 11
0
votes
1 answer

Grav CMS adding localization via admin

I am using the admin plugin. I can create a page fine, and it uses the language I have selected as my locale as the language of page, which is also fine. But I can't add a different localization for the page unless I manually add one in the…
Grant
  • 1,822
  • 1
  • 21
  • 30
0
votes
1 answer

select Template module via GRAV Admin plugin

Hi i created my first GRAV-Template with modular-pages. Now i want to setup my Grav-Admin page fields to let the editor choose one of my module files themes/my-theme/modular/xyz-module.html.twig via a select-field. In other words, i need a…
stephanfriedrich
  • 563
  • 5
  • 20
0
votes
1 answer

Grav template -- Twig not listing child pages

I have made a few pages in grav with a taxonomy like this. - Home (category type) - programming (category type) - stuff (category type) - stuff1 (page type) - stuff2 (page type) - stuff3 (page type) I've also made a template type called…
A_Elric
  • 3,508
  • 13
  • 52
  • 85
0
votes
1 answer

How to make a single site page with gravstrap?

I am using the theme gravstrap for Grav CMS. I want to make a single page website, like in this example : http://gravstrap.diblas.net/gravstrap-theme-simple-page-example I looked at the brief blog post explaining how to do it and also at the source…
ymoreau
  • 3,402
  • 1
  • 22
  • 60
0
votes
1 answer

Page.find() not working in a partial template

Here's partial template:
Serke TV
{% for p in page.find('/videos').children if p != page %}

{{ p.title }}

{% endfor %} I…
Alexander Kim
  • 17,304
  • 23
  • 100
  • 157
0
votes
1 answer

Grav's asset manager can fully replace a need for gulpjs?

GravCMS has it's own asset manager: https://learn.getgrav.org/themes/asset-manager It can minify, concatenate js/scss files. Is it better to do such tasks via gulp (gulp-sass, gulp-concat, gulp-uglify), rather than using built-in asset manager in…
Alexander Kim
  • 17,304
  • 23
  • 100
  • 157
0
votes
1 answer

Grav CMS Ordering by Custom Field in Template Blueprint | For Loop

I am trying to sort the output of a forloop in Grav CMS by a custom field from my template Blueprint. I have an event page with child pages of the actual events. I'm trying to loop through the child pages and sort the output by a custom field that…
Cedric W
  • 13
  • 5
0
votes
2 answers

CSS file not loading in grav cms using twig

I have the following code in my default theme in grav after a fresh install , the code resides in the in base.html.twig file which is basically a partial , that gets used in other twig templates like so: {% extends 'partials/base.html.twig' %} {%…
Alexander Solonik
  • 9,838
  • 18
  • 76
  • 174
0
votes
1 answer

Grav - Using shortcodes in twig

Following this question, I have found that there is a plugin named shortcodes which might be helpful here. I have installed the plugin and created a new page: --- title: slide1 media_order: slider1.jpeg taxonomy: category: - 'Home…
M.E.
  • 4,955
  • 4
  • 49
  • 128
0
votes
1 answer

Adding file upload to "modular" template in GRAV

I'm using a theme that use background image in template like this: {% if page.header.background_image != '' %} {% set background_html = 'style="background-image: url(' ~ page.media.images[page.header.background_image].url ~ ');"' %} {% else %} …
Zbyszek Kisły
  • 2,110
  • 4
  • 26
  • 48
0
votes
1 answer

Combine modular with the blog in Grav

I'm trying to achieve something in Grav, but I cannot wrap my head around the logic. I have a blog in Grav, which works great. I put these pages below the blog and the different posts are displayed like I want to. Now I want to add a module, a…
Kuubs
  • 1,300
  • 1
  • 14
  • 42
0
votes
1 answer

Highlight the Active Page when Children are Generated by Plugin

I'm in the process of writing a plugin for my website. It has a file for the top level file, but all of the child pages are generated by the plugin itself. This is mostly because the plugin has to deal with a database. Currently my webpage is setup…
Jacobm001
  • 4,431
  • 4
  • 30
  • 51