Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

pamtbaau Legend

Grav Forum Moderators

@pamtbaau · Joined 8 years ago · 3221 posts · 18 topics · 1023 reputation

Badges

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

Recent posts

  • My project in Apache problem with migration to Apache · 7 years ago

    @amirghanbariir, First a kind request... Please consider formatting your code correctly using triple back-ticks (```) and adding the origin of the code. It saves me searching the source code of Grav

  • Where is the template? · 7 years ago

    @danulf, Have you already found/consulted the documentation at https://learn.getgrav.org/. It has a dedicated chapter on how to create Themes. As a newbe, you might consider to also read chapters 1 +

  • Instructions for using the Tribune Plugin · 7 years ago

    @GNUTechie, I agree the documentation might not look optimal. However, in defence of the author, to embed the plugin in a page not much more info is required. TL;DR: Not useful for modular pages. To g

  • Install in subdirectory but serve from web root · 7 years ago

    @waynedpj, Never tried it myself, but there is a document page on this: Change the site URL Not sure if you've already read that...

  • How can I delete a page folder programmatically (in plugin)? thoughts on cron jobs welcome · 7 years ago

    @Netzhexe, The question intrigued me, so I did some playing... Use-case: Cleanup expired events, without using cronjob and/or Admin plugin. To minimize the impact of deleting events (pages), it might

  • How do I get all pages of a certain type in PHP (in a plugin)? · 7 years ago

    @Netzhexe, It seems your code is a little off.. $pages = $this->grav['pages']; $collection = $pages->all()->ofType('event')->dateRange($myvar); This will select all pages of type 'event',

  • How do I get all pages of a certain type in PHP (in a plugin)? · 7 years ago

    @Netzhexe, First a few notes on your attempts: - $collection = new Collection(); This creates an empty collection, which means that all your samples based on '$collection' will return an empty colle

  • Question theme x-corporat · 7 years ago

    @marc63400 It's by design... The template 'templates/partials/base.html.twig' creates two different menus. The one that is displayed in larger screens loops through the root pages and their child p

  • URL for plain markdown · 7 years ago

    @Suplanus, When deleting/renaming '/CHANGELOG.md' from my site, the 'forbidden' error is gone and the url example.com/changelog.md shows the right content... Also, instead of defining a url extension,

  • URL for plain markdown · 7 years ago

    @Suplanus, When you use your own template, as I showed above, frontmatter will not be included in the output. I would feel hesitant to allow straight access to all *.md files. Not sure what the risks