pamtbaau Legend
Grav Forum Moderators
@pamtbaau · Joined 8 years ago · 3185 posts · 17 topics · 1019 reputation
Badges
Recent posts
-
Conditional Fields in blueprint
· 8 years ago
@finanalyst I'm just guessing that the condition is parsed and executed by Javascript. The dash in 'map-leaflet' might cause problems. What if you try: "config.plugins['map-leaflet'].provider == 'ope
-
How do I display a description of the category and tags on the output page?
· 8 years ago
@dydaevskiy You may repeat the url to the solution, but that doesn't tell me what might have gone wrong in your code... ;-) Anyway, using theme Quark, try this: In '/user/config/site.yaml' add: categ
-
Admin plugin or twig
· 8 years ago
@julien With respect to the plugin, I suspect the condition '$page instanceof Page' fails because 'Page' is unknown. You could try one of the following: Define the proper 'use' as: use Grav\Common\Pa
-
Modular menu on non-modular pages
· 8 years ago
@pgrav Wished I had understood your requirements a little bit better the first time... :-) I find it hard to judge whether there is a better or more correct way, while I only see fragments of the code
-
Admin plugin or twig
· 8 years ago
@julien Twig: In Twig, an if-statement must be enclosed in {% %} not {{ }}... Because of these "typo's" every 'suite-range' assignment is executed and the last assignment wins... Plugin: In the plug
-
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