You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
It seems like sitemap can not be generated when related pages plugin is set with @self.siblings whereas it works with @self or @taxonomy.
I got the message Call to a member function children() on null.
Here is my config:
Related pages v1.1.3
Sitemap v1.6.2
Grav v1.1.0 - Admin v1.1.1
(Had the same problem with Grav v1.0.10)
Page.php
break;
case 'all':
$results = $this->children();
break;
case 'parent':
$collection = new Collection();
$results = $collection->addPage($this->parent());
break;
case 'siblings':
$results = $this->parent()->children()->remove($this->path());
break;
case 'descendants':
$results = $pages->all($this)->remove($this->path())->nonModular();
break;
}
}
$results = $results->published();
break;
The Related Pages plugin should really have a configuration option to be enabled only on some routes (e.g. on /blog and children) and not simply run on every page.
Hi,
It seems like sitemap can not be generated when related pages plugin is set with @self.siblings whereas it works with @self or @taxonomy.
I got the message
Call to a member function children() on null
.Here is my config:
Related pages v1.1.3
Sitemap v1.6.2
Grav v1.1.0 - Admin v1.1.1
(Had the same problem with Grav v1.0.10)
Page.php
Here is the yaml just in case:
And obviously the yaml for sitemap:
The text was updated successfully, but these errors were encountered: