pamtbaau Legend
Grav Forum Moderators
@pamtbaau · Joined 8 years ago · 3203 posts · 17 topics · 1020 reputation
Badges
Recent posts
-
Page.find fails only on custom route
· 8 years ago
@npetri Is '/_footer/links' located at the top level of folder '/user/pages'? Like '/user/pages/_footer/links'. page.find('/...) Starts searching for a page from the root of the pages folder. When I u
-
3-column content on blog page with Quark theme?
· 8 years ago
@marcocevoli Add the following to your favourite file where you tweak Quark's style: @media screen and (min-width: 980px) { .bricklayer-column-sizer { width: 33.3%; } } I recognise you
-
Inheritance of getgrav-logo svg in Quark theme?
· 8 years ago
A few things I could think of: Have you changed the theme in 'system.yaml' from 'quark' to 'mytheme'? Have you copied the file '/user/themes/quark/templates/partials/base.html.twig' to '/user/themes/
-
[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