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

Muut Archive Legend

@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation

Badges

✏️ First Post 💬 Conversation Starter ❤️ Well Liked

Recent posts

  • Form Nonce on Multiple Forms · 9 years ago

    It's correct that the value of the form-nonce is the same one for all the frontend forms, as it's a temporary value linked to the session and the current site security salt, renewed every 12 hours. I

  • Form Nonce on Multiple Forms · 9 years ago

    Hi I have a modular page with more than one form. Everything works as expected but the page doesn't validate. The reason for this is that each form has a field as follows <input type="hidden" id="f

  • Check user's permission · 9 years ago

    Sorry, I tried to edit post and answer but seems like I can't anymore.

  • Check user's permission · 9 years ago

    Can you wrap the code snippets in triple backticks, or triple dashes, so they are rendered correctly by the forum? Thanks!

  • Check user's permission · 9 years ago

    Ok, got it! In user account yaml add: your_config_name: config: 'true' and, under admin, add rights to your page: your_plugin-page1: 'true' your_plugin-page2: 'true' your_plugin-page3: 'true' your_plu

  • Check user's permission · 9 years ago

    Hi there, I'm developing a new plugin for Grav and I need to display menu elements on admin, depending on permission. I've got my menu item like this: if ( $this->isAdmin() ) { $this->enable([ '

  • Calling custom class from shortcode class · 10 years ago

    I'm developing a shortcode plugin much like the Shortcode UI plugin. Now I have code which is used in two shortcode handlers and in the shortcode plugin as well. So I want to place that code in a func

  • 💡A fix for "AdminTwigExtension is not enabled" server error · 10 years ago

    Sometimes when you update admin plugin, you will get this error: 0 - The "Grav\Plugin\AdminTwigExtension" extension is not enabled in "dashboard.html.twig" at line 1. http://imgur.com/a/nARvR If you h

  • Documentation on Find Resources · 10 years ago

    Somehow I missed that part of the docs. Thanks VERY much for pointing me to it !

  • Documentation on Find Resources · 10 years ago

    No judgement here! :) Grav has a built-in file logger, too.