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

  • Override 404 error page · 10 years ago

    @hungtan You can provide your own error page. The error plugin has such an option routes: 404: '/error' Either create an error page (error.md) with the modified title in a possibly 01.error folder (

  • Override 404 error page · 10 years ago

    Is it possible to override the content of 404 error page user/plugins/error/pages/error.md? I can override the content via user/themes/theme_name/templates/error.html.twig, but for the title "Page not

  • Menu with highlight current page and parent title · 10 years ago

    Hi @ocean12, you can add some checks to your loop. The page class has many methods to fine-grain your result. To only show visible and maybe published pages change your for loop to ---twig {% for p in

  • Menu with highlight current page and parent title · 10 years ago

    Oeps... its is also showing invisible and disabled pages. How can I solve that issue?

  • Menu with highlight current page and parent title · 10 years ago

    Its working :-) <h3>{{ page.parent.title }}</h3> <ul> {% for p in page.parent.children %} {% if p == page %} <li class="active"><a href="{{p.url}}

  • How to add YAML file that can be access from any page inside the site? · 10 years ago

    You can define the nav menu for example in user/config/site.yaml, and fetch the properties using {{ config.site.yourproperty }}

  • How to add YAML file that can be access from any page inside the site? · 10 years ago

    How can I localize content though out my Grav CMS? For example I have some footer content in both english and french. So rather than hardcoding the content for my footer, I need it to be dynamic so th

  • Streams: move image cache · 10 years ago

    Still not working for me. I tried setup.php: <?php return [ 'streams' => [ 'schemes' => [ 'page' => [ 'type' => 'Stream', 'prefixes' =&g

  • Streams: move image cache · 10 years ago

    You need do define it like this: cache: type: 'Stream', prefixes: '': ['cache'], images: ['images']

  • Streams: move image cache · 10 years ago

    Hello, i need to move image cache to another location. I moved cache using: cache: type: Stream prefixes: '': [newLocation/cache] page's content is moved fine, but no page images are loa