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

Angular Json not writing to HTML

I am using Grav CMS and I am trying to build my blog list page via Angular/Json (I am parsing all page data via Json) I have managed to get all of the data to show up in NGInspector, but no matter what I try it will not write to the page. Also, I…
JoethaCoder
  • 494
  • 1
  • 6
  • 17
0
votes
1 answer

Grav CMS Custom Page Template in Bootstrap: putting different content into rows and columns

I have been following the Grav documentation (https://learn.getgrav.org/cookbook/general-recipes#render-content-in-columns) to figure out how to do this, but haven't had much luck. The content for my page is in default.md, but I can't figure out to…
0
votes
1 answer

How to include external YAML file as global variables using TWIG

I am using GRAV as a CMS for a site I am working on, which uses TWIG as a templating language. The site we have right now has both french and english versions, so we have external YAML files with all the content we need to localize the pages with…
Brady
  • 733
  • 1
  • 6
  • 16
0
votes
0 answers

Markdown: is possible to merge a features page with a keypoints?

I'm building a one page template with markdown. I have something like this in the Markdown: title: Services menu: Services class: small features: - header: Rechenzentrum image: icon1.png - header: Kollaboration image: icon2.png …
Antonioz
  • 151
  • 2
  • 18
-1
votes
1 answer

How get modular page processed content

I created a plugin with the createIndexData function: public static function createIndexData($file): bool { $pages = self::getPages(); $grav = Grav::instance(); if($pages !== null){ $locator = $grav['locator']; …
-1
votes
1 answer

How to make tabbed code screen on Grav Learn2

I could not find a solution for that tabbed code screen. Can anyone help me to figure it out ? screenshot : https://i.stack.imgur.com/GUG4r.jpg also this is the page which in screenshot: https://dev.iyzipay.com/tr/api/taksit-sorgulama Thanks.
soyer
  • 3
  • 1
-1
votes
1 answer

How do i iterate over all tags in main blog page in grav cms

I have the following defined in my user/config/site.yaml file. title: Grav author: name: Joe Bloggs email: 'joe@test.com' metadata: description: 'Grav is an easy to use, yet powerful, open source flat-file CMS' taxonomies: [tag,author] As…
Alexander Solonik
  • 9,838
  • 18
  • 76
  • 174
-1
votes
1 answer

how do i select all tags in my twig template in grav?

I have the following code in my default.html.twig file to display all the titles of the blog pages with the tag : dog:
    {% for post in taxonomy.findTaxonomy({'tag':'dog'}) %}
  • {{ post.title }}(0)
  • {%…
Alexander Solonik
  • 9,838
  • 18
  • 76
  • 174
-1
votes
1 answer

Table html with Twig & Yaml in Grav

I can not display the content under each title as an html table Yaml : table: - title: Test content: - value: 'test1' - value: 'test2' - value:…
Kol2gaR
  • 202
  • 2
  • 13
-1
votes
1 answer

Website link not working on phone

I have a deployed website, working perfectly fine on local and server : autrecote.be/en except that the menu (including Description & Contact) doesn't work but only on smartphones. As I used the Grav CMS, I didn't do the responsive adaptation and I…
-2
votes
1 answer

Complex collections depending on Frontmatter headers and it's value?

Include partial view with a complex collection: {% include 'partials/article-main.html.twig' with {'page': #here goes condition} %} How can i choose all pages, that has a field named main_article in the headers/Frontmatter set to true?
Alexander Kim
  • 17,304
  • 23
  • 100
  • 157
-2
votes
1 answer

Grav error when trying to install plugin - 'bin' is not recognized as an internal or external command, operable program or batch file

I am trying to install the grav code highlight plugin. When i run the following command in my terminal console from the project root: bin/gpm install highlight I get the following error: 'bin' is not recognized as an internal or external command,…
Alexander Solonik
  • 9,838
  • 18
  • 76
  • 174
1 2 3
13
14