pamtbaau Legend
Grav Forum Moderators
@pamtbaau · Joined 8 years ago · 3221 posts · 18 topics · 1023 reputation
Badges
Recent posts
-
Page collection is empty when in admin panel
· 6 years ago
@MartinBekec, Seems we have overlooked the migration docs 1.6 -> 1.7 which has a section on breaking changes for Admin plugins: BC BREAK Admin will not initialize frontend pages anymore, this has
-
Page collection is empty when in admin panel
· 6 years ago
@MartinBekec, Interesting... When using Grav v.1.7 only null or [] values returned... Maybe, opening an issue on Github might be an idea?
-
Ordering blogposts by publishing date
· 6 years ago
@werdi, I still don't understand what publish_date has to do with it, except... When you save a page which has only publish_date set, you update its modified_date. Since your ordering is dir:desc, pag
-
Page collection is empty when in admin panel
· 6 years ago
@MartinBekec, Yes, I did... Although it makes no difference for the results, I declare the events via: public function onPluginsInitialized() { // Don't proceed if we are in the admin plugin i
-
Page collection is empty when in admin panel
· 6 years ago
@MartinBekec See result of my code: public function onPagesInitialized($event) { $page = $event['pages']->find('/typography', true); // $page contains a Page object of page '/typography' $
-
Ordering blogposts by publishing date
· 6 years ago
@werdi, Respect! it is very brave to admit that in public... ;-) But you do know your way with Git itself, do you???
-
Ordering blogposts by publishing date
· 6 years ago
@werdi Is there a github repo I could clone to test? You can DM me the link if you would like to keep it private.
-
Page collection is empty when in admin panel
· 6 years ago
@MartinBekec, In which event are you checking the existence of the page? When I hook up to event onPagesInitialized and check for $event['pages'] I get to see all available pages.
-
Ordering blogposts by publishing date
· 6 years ago
@werdi, I cannot reproduce what you are seeing. And because I cannot see what is happening in you system, it is bit useless for me to continue digging... At the moment I do not see any role of 'publis
-
Ordering blogposts by publishing date
· 6 years ago
@werdi, That is not my experience... When I set the date in each page, via an editor or through the Admin plugin, their values do not change after saving the page later on. The date is only cleared (a