Martin Bekec Newcomer
@MartinBekec · Joined 6 years ago · 6 posts · 1 topics · 0 reputation
Badges
Recent posts
-
Page collection is empty when in admin panel
· 6 years ago
Yes, that works. Thanks!
-
Page collection is empty when in admin panel
· 6 years ago
Link to github issue
-
Page collection is empty when in admin panel
· 6 years ago
@pamtbaau I also tried putting the event in $this->enable, but as you mentioned, it doesn't make any difference. Yes, normally I would disable it in the Admin Panel, the problem is however, that I
-
Page collection is empty when in admin panel
· 6 years ago
Have you tried it in the Admin Panel? I've tried your exact code (with dump to display it) and nothing changed. This is how I register the event, in case that matters: public static function getSubscr
-
Page collection is empty when in admin panel
· 6 years ago
I originally did it with $this->grav['pages'] in onPageInitialized. Now I tried onPagesIntialized and $event['pages']. Specifically, this is the code I tried: public function onPagesInitialized(Eve
-
Page collection is empty when in admin panel
· 6 years ago
Hello, I am developing a plugin where I need to access a page using its route. Here is the code I use: $this->grav['pages']->find($this->viewRoute, true) However when I try to do this in Admi