Skip to content
Grav 2.0 is officially stable. Read the announcement →

pamtbaau Legend

Grav Forum Moderators

@pamtbaau · Joined 8 years ago · 3129 posts · 12 topics · 1011 reputation

Badges

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

Recent posts

  • Replace long if/elseif/else with array search · 8 years ago

    @metbril: It looks like the PHP array_search() function is unavailable in Twig. Just curious... What made you think array_search() was unavailable before, and what makes it available right now?

  • Replace long if/elseif/else with array search · 8 years ago

    Although my example is working fine in my project, I couldn't find any mentioning of 'array_search()' in the Grav docs. But it does work (in my project)... So I guessed the docs were outdated :-) Foun

  • Breadcrumbs not showing on a modular page · 8 years ago

    What you could do as a quick-fix.... Copy /user/themes/quark-open-publishing/templates/modular.html.twig into /user/themes/mytheme/templates/ Copy {% include 'partials/breadcrumbs.html.twig' %} in ab

  • Find and get a page by its slug or path · 8 years ago

    @Amatiq Have a look at the docs about \Grav\Common\Page\Pages and Plugin Event Hooks In event, or after, onPagesInitialized, you could try the following two options: $pages = $this->grav['pages'];

  • Animated GIFs not showing at Quark blog list page · 8 years ago

    As @pfodo has already mentioned, one could copy /system/config/media.yaml to user/config and change the 'gif' settings. So, I did... types: ... gif: type: image thumb: media/thumb-gif.png

  • Process twig variable in a form frontmatter · 8 years ago

    Some further research... As said above, when the fields 'form' and 'forms' are not ignored, an error is thrown by json_decode() after Twig has parsed the frontmatter of form.md. I was using the form a

  • Strange behaviour of language switcher not picking up language specific slug · 8 years ago

    Have you set the 'slug' in the french page? Like: --- title: Acquisition slug: acquisition --- And in /user/config/system.yaml: pages: redirect_default_route: true

  • Process twig variable in a form frontmatter · 8 years ago

    Had some deeper look into the matter... TL;DR: 'form' and 'forms' fields are ignored by default during Twig processing of frontmatter. Looking at the Page section in the Configuration docs, I noticed

  • Process twig variable in a form frontmatter · 8 years ago

    I thought I had figured it out... But no, I didn't... I can get it to work for other frontmatter like: menu: "{{ page.title|upper }}" But not in form fields like: form: name: contact fields:

  • Animated GIFs not showing at Quark blog list page · 8 years ago

    Animated gifs are not seen as being of type 'image' but as 'animated image' (see Supported Media Files). In the blog template the 'hero_image' is selected from the set of 'images', which does not con