[9.1.09] sitemap article premier niveau

This commit is contained in:
fredtempez 2019-06-09 18:36:57 +02:00
parent 94ea697b98
commit 5c8ec1e41a

View File

@ -672,7 +672,11 @@ class common {
$sitemap->addUrl($childKey,$datetime);
// La sous-page est un blog
if ($this->getData(['page', $childKey, 'moduleId']) === 'blog') {
foreach($this->getData(['module',$childKey]) as $articleId => $article) {
$sitemap->addUrl( $childKey . '/' . $articleId ) ;
}
}
}
// Articles du blog
if ($this->getData(['page', $parentPageId, 'moduleId']) === 'blog') {