pamtbaau Legend
Grav Forum Moderators
@pamtbaau · Joined 8 years ago · 3129 posts · 12 topics · 1011 reputation
Badges
Recent posts
-
Loop data from YAML multilingual
· 8 years ago
Yes, taking your yaml example, you could do something like the following in Twig: {% set language = grav.language.getlanguage %} {% set image = page.find('/images').media.images['myimage.jpg'] %} {% f
-
Loop data from YAML multilingual
· 8 years ago
Have you had a look at the documentation about MetaFiles? These are yaml files that can contain any meta data you would like to add to an image.
-
Doable in Grav?: random snippet of text
· 8 years ago
I have just uploaded an example plugin that shows a random quote from a list of quotes stored in user/data/randomquote.yaml. The repo's url is Random Quote and feedback is welcome.
-
Modular menu on non-modular pages
· 8 years ago
@pgrav Desirability: I wonder if this is something I would use in my projects, because I think this will create a less than optimal user experience. The regular pages probably show a nice header and t
-
Contact form in a default.md
· 8 years ago
Maybe the following documentation chapters may help: Example: Contact Form How to: Forms in modular pages. Take note of the following: !!!In Form v2.0, you can now define the form directly in the m
-
Bootstrap4 theme menu not working with onpage_menu: true
· 8 years ago
@pgrav This is an issue with Bootstrap itself, which of course is carried over into theme Bootstrap4. I don't know of a better way. I've only found solutions which are similar/equal to yours. It might
-
Howto create extended footer with 3 partial blocks?
· 8 years ago
@SjoerdSmeets The Quark theme comes with the template 'templates/partials/sidebar.html.twig' which shows a list of plugins which are enabled. You might call that a kind of 'widget area'..
-
How to use a template (Landio)
· 8 years ago
@yandiro The home page only seems to be blank... It has only frontmatter and no content. Therefor, the content tab in the page editor appears empty. Grav has excellent documentation at https://learn.g
-
Multilanguage in the Ceevee template?
· 8 years ago
@brad Multilingual anchor: The problem arises because the anchor for each module is hard-coded like '<section id="about">'. However, the link in the navigation bar is based on the title of the p
-
The sign +In sub menu
· 8 years ago
I don't consider the following really as a solution, but rather a hacky override of 'jquery.treemenu.js' (which runs the menu) plus some required css compensation. Create inherited theme from quark-