forked from ZwiiCMS-Team/ZwiiCMS
[9.1.10] fix sitemap.xml article brouillon
This commit is contained in:
parent
5d144c0058
commit
0c68f36088
@ -673,15 +673,19 @@ class common {
|
||||
|
||||
// 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 ) ;
|
||||
foreach($this->getData(['module',$childKey]) as $articleId => $article) {
|
||||
if($this->getData(['module',$childKey,$articleId,'state']) === true) {
|
||||
$sitemap->addUrl( $childKey . '/' . $articleId ) ;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// Articles du blog
|
||||
if ($this->getData(['page', $parentPageId, 'moduleId']) === 'blog') {
|
||||
foreach($this->getData(['module',$parentPageId]) as $articleId => $article) {
|
||||
$sitemap->addUrl( $parentPageId . '/' . $articleId ) ;
|
||||
foreach($this->getData(['module',$parentPageId]) as $articleId => $article) {
|
||||
if($this->getData(['module',$parentPageId,$articleId,'state']) === true) {
|
||||
$sitemap->addUrl( $parentPageId . '/' . $articleId ) ;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user