pamtbaau Legend
Grav Forum Moderators
@pamtbaau · Joined 8 years ago · 3221 posts · 18 topics · 1023 reputation
Badges
Recent posts
-
[SOLVED] How to generate fake url /item-XXX or item/XXX for the same page?
· 8 years ago
Nice! May I add just one last nitpick? @nicolasG: $parts = explode('-',$this->grav['uri']->path()); This line is not really necessary. You can reuse $this->annonceId, which has been assigne
-
How to set header image in grav blog page
· 8 years ago
If you don't know how you did it... then it is time to start studying the docs... ;-)
-
[SOLVED] How to generate fake url /item-XXX or item/XXX for the same page?
· 8 years ago
@nicolasG: $this->page = $this->grav['page']; On a guick glance... Have a look at the Lifecycle of Grav. You can see that event 'onPluginInitialized' comes before 'onPagesInitialized', hence $t
-
[SOLVED] How to generate fake url /item-XXX or item/XXX for the same page?
· 8 years ago
Have a look at this sample which is only part of the solution.... Of course you need to adjust to your own needs and add extra required checks... <?php namespace Grav\Plugin; require_once __DIR__
-
[Antimatter] 5 columns desktop - single column rendering on mobile devices?
· 8 years ago
And I only looked at it and saw all is well....
-
How to set header image in grav blog page
· 8 years ago
Mi dispiace... My script presumed a Unix OS. Have you considered to set up Windows Subsystem for Linux? I'm running Windows 10 and moved all my development to WSL and love it. You can replace step 1.
-
onAdminSave() for setting route default override
· 8 years ago
A few thoughts come to mind: What is the performance overhead of looping through all blog items on every page request? Could you jump out when type of current page is not 'blog' and/or 'item'? Why no
-
How to set header image in grav blog page
· 8 years ago
@semplicewebsite Would you like to show different images for the blog item in the list ('blog.html.twig') and on the blog item itself ('item.html.twig')? Unfortunately that option is not build in...
-
Tag Results Page
· 8 years ago
I presume you are making the changes in a child theme by using Theme Inheritance? If not, your changes will be lost when Antimatter gets updated. And that would be a pity wouldn't it....
-
How to set header image in grav blog page
· 8 years ago
It depends.... What is the theme you are using? What (and hence the template) are you looking at: The header of page blog.md? The header of each item listed on page blog.md? The header of page item.