[9.1.09] bug module forme et ajout sitemap

This commit is contained in:
fredtempez 2019-06-09 15:24:43 +02:00
parent edf988a636
commit 0915c3a2ea

View File

@ -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'