From 5c8ec1e41aaffc13ed8a43aaf282c31df55a730f Mon Sep 17 00:00:00 2001 From: fredtempez Date: Sun, 9 Jun 2019 18:36:57 +0200 Subject: [PATCH] [9.1.09] sitemap article premier niveau --- core/core.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/core.php b/core/core.php index 5eb30813..5295cc84 100644 --- a/core/core.php +++ b/core/core.php @@ -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') {