From 0915c3a2eab18fe920bd78ee432041a9fd4dd2cd Mon Sep 17 00:00:00 2001 From: fredtempez Date: Sun, 9 Jun 2019 15:24:43 +0200 Subject: [PATCH] [9.1.09] bug module forme et ajout sitemap --- core/core.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/core/core.php b/core/core.php index f23b0b7a..5eb30813 100644 --- a/core/core.php +++ b/core/core.php @@ -663,12 +663,22 @@ class common { if ($this->getData(['page',$parentPageId,'group']) !== 0 || $this->getData(['page', $parentPageId, 'disable']) === true) { continue; } + // Sous-pages $sitemap->addUrl ($parentPageId,$datetime); foreach($childrenPageIds as $childKey) { if ($this->getData(['page',$childKey,'group']) !== 0 || $this->getData(['page', $childKey, 'disable']) === true) { continue; } $sitemap->addUrl($childKey,$datetime); + + // La sous-page est un blog + + } + // Articles du blog + if ($this->getData(['page', $parentPageId, 'moduleId']) === 'blog') { + foreach($this->getData(['module',$parentPageId]) as $articleId => $article) { + $sitemap->addUrl( $parentPageId . '/' . $articleId ) ; + } } } // generating internally a sitemap @@ -2461,7 +2471,7 @@ class template { 'href' => 'javascript:void(0);', 'ico' => '', 'id' => $nameId, - //'name' => $nameId, + 'name' => $nameId, 'target' => '', 'uniqueSubmission' => false, 'value' => 'Bouton'