forked from ZwiiCMS-Team/ZwiiCMS
[9.1.09] sitemap article premier niveau
This commit is contained in:
parent
94ea697b98
commit
5c8ec1e41a
@ -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') {
|
||||
|
Loading…
Reference in New Issue
Block a user