pamtbaau Legend
Grav Forum Moderators
@pamtbaau · Joined 8 years ago · 3196 posts · 17 topics · 1020 reputation
Badges
Recent posts
-
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
-
URL for plain markdown
· 7 years ago
@Suplanus, I have found two alternatives but both not 100% fullfilling your requirements: Using the url example.com/changelog (without extension) Using an url with the extension '.md', but cannot use
-
Access the Taxonomy Filter in Twig
· 7 years ago
@clemens, Try uri instead of url {{ var_dump(uri.params) }} returns: '/tag:concert' {{ var_dump(uri.extractParams(uri, ':')) }} returns: array (size=2) 0 => string 'http://localhost' (length=16)
-
Taxonomy pages do not allow custom collections
· 7 years ago
@swimator, By default, Grav applies the url.params to collections. To alter this behaviour you can use option url_taxonomy_filters: boolean in your collection definition, or change the default in syst
-
Slideshow not working in Deliver theme
· 7 years ago
@sue, Did some research for you... TL;DR: Solution is at the bottom Downloaded the deliver skeleton Slider is working fine... Switched to fresh Grav installation, added theme Deliver and copied