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

  • User Permissions don't seem to work · 9 years ago

    I set up a private page for approved users. The permissions I set don't seem to work (except for site.login). I can't get it to work with groups, either. Its header looks like this: Page Header title:

  • Calling plugin from CLI · 9 years ago

    Frankly the best way is to create a class that both the plugin and the CLI command share. Then just include it from both.

  • Calling plugin from CLI · 9 years ago

    I have a CLI-extension used in a plugin, but need to call a method in the plugin's main .php-file to avoid recreating a method in the CLI. I declared the namespace of the plugin, use Grav\Plugin\TwigF

  • Tip: Loading inline JS from file · 9 years ago

    It's Google's PageSpeed requirements, they require to have at least the CSS for the elements above-the-fold in the first HTML response (=inline <style> element in the <head> section) https

  • Tip: Loading inline JS from file · 9 years ago

    I don't think you can do that with Grav. Do you really need the CSS inline? What is the benefit of having the CSS in the HTML over loading the CSS as part of the bundled and minified external CSS file

  • Tip: Loading inline JS from file · 9 years ago

    @bleutzinn is there a way to create the "minified version of your CSS" file with Grav? I set css_pipeline and css_minify to true, but that results in an external css file. The CSS I inject using add

  • Tip: Loading inline JS from file · 9 years ago

    $assets->addInlineCss(file_get_contents('mycustomstyles.css'), 1);will include the content of the file mycustomstyles.cssinline in the page's HTML source. To insert minified CSS you should save a m

  • Tip: Loading inline JS from file · 9 years ago

    Thanks for pointing out the file_get_content trick. Any idea if it's possible to inject minified CSS with this approach?

  • Tip: Loading inline JS from file · 10 years ago

    No thanks! I'm very happy to be able to contribute to Grav although it's just a tiny bit.

  • Tip: Loading inline JS from file · 10 years ago

    Thanks! This is being added to the plugin cookbook in the in a future release.