From c5d3e93f0370852da1726e922e3e264eefda9a43 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Tue, 7 May 2019 18:36:05 +0200 Subject: [PATCH] [9.1.01] Exclure barre et pages membres du sitemap. --- core/core.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/core.php b/core/core.php index c85621e5..556f106b 100644 --- a/core/core.php +++ b/core/core.php @@ -28,7 +28,7 @@ class common { const GROUP_ADMIN = 3; // Numéro de version - const ZWII_VERSION = '9.1.00'; + const ZWII_VERSION = '9.1.01'; public static $actions = []; public static $coreModuleIds = [ @@ -655,6 +655,11 @@ class common { // sitemap index file name $sitemap->sitemapIndexFileName = "sitemap-index.xml"; foreach($this->getHierarchy(null, false, false) as $parentPageId => $childrenPageIds) { + // Exclure les barres et les pages non publiques + if ($this->getData(['page',$parentPageId,'group']) !== 0 || + $this->getData(['page',$parentPageId,'block']) === 'bar') { + continue; + } $sitemap->addUrl ($parentPageId,$datetime); foreach($childrenPageIds as $childKey) { $sitemap->addUrl($childKey,$datetime);