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

  • Changing custom Page Headers in Admin GUI · 10 years ago

    Not really. The fields specified in blueprints.yaml are more theme-based and I can access it in template, but not precisely owned by a page. Plus they are modified in the theme option of the Admin Any

  • Changing custom Page Headers in Admin GUI · 10 years ago

    You can add custom fields for any page. Check out the blueprints documentation.

  • Changing custom Page Headers in Admin GUI · 10 years ago

    Hey guys! Loving Grav so far. Quick question: Is there a way to change a custom page header option in the GUI of the Administration Panel? Basically I have a page that has the next header --- md next

  • Access grav instance in cli · 10 years ago

    It would be easier to read your code if you pasted it in a markdown code block (see the ? for help in the input box on the forum) Anyway this issue is probably because of the order things are initiali

  • Access grav instance in cli · 10 years ago

    I'm using ConsoleTrait now, but the error persists. This line in cache.php seems to be the problem, when I comment it out, the problem goes away: // Dump Cache state $grav['debugger']->addMessage('

  • Access grav instance in cli · 10 years ago

    You need to have a use GravTrait; statement in your class to make that available. Also you could use use ConsoleTrait; that is used by GPM. This has the GravTrait, but also sets up some useful stuff

  • Access grav instance in cli · 10 years ago

    How can I access the equivalent of $this->grav in a plugin, in a cli script? I tried self::getGrav(), but I get a weird error if I try to use this object: Fatal error: Call to a member function get

  • How to get filename image's extensions · 10 years ago

    Actually there's a better way: {{ image.extension }}

  • How to get filename image's extensions · 10 years ago

    Figured it out by myself: {% set filename_ext = filename|split('.') %} then: {{ filename_ext[1] }}

  • How to get filename image's extensions · 10 years ago

    I use loop: {% for filename, image in page.media.images %} And I want to retrieve a image's filename extension, how can I do that?