pamtbaau Legend
Grav Forum Moderators
@pamtbaau · Joined 8 years ago · 3131 posts · 12 topics · 1012 reputation
Badges
Recent posts
-
How can I delete a page folder programmatically (in plugin)? thoughts on cron jobs welcome
· 6 years ago
@Netzhexe, I'm pleased to hear you are content with the provided sample. No need to brush up my ego though, it is already as content as it could be... 😇
-
My project in Apache problem with migration to Apache
· 6 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?
· 6 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
· 6 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
· 6 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
· 6 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)?
· 6 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)?
· 6 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,