Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

pamtbaau Legend

Grav Forum Moderators

@pamtbaau · Joined 8 years ago · 3196 posts · 17 topics · 1020 reputation

Badges

Grav Core Team ModSquad Team Member ✏️ First Post 💬 Conversation Starter ❤️ Well Liked

Recent posts

  • Filepicker inside a list · 8 years ago

    @jacfab This seems to be a copy/past induced problem... Try renaming the field's name from '.header.a_file:' to '.a_file:' and it should work...

  • Conditional Fields in blueprint · 8 years ago

    Glad it's working... Twig variables: Also Twig does not handle variables containing a dash. When the attribute contains special characters (like - that would be interpreted as the minus operator) [

  • 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.