Bug sitemap
This commit is contained in:
parent
8e18a0a425
commit
7b4f1b5c8c
@ -9,6 +9,7 @@
|
|||||||
- Option de menu burger désactivée par la validation de la bannière.
|
- Option de menu burger désactivée par la validation de la bannière.
|
||||||
- Module Formulaire : gestion des réponses, barre de pagination absente.
|
- Module Formulaire : gestion des réponses, barre de pagination absente.
|
||||||
- Gestionnaire de fichiers : droit des éditeurs sur les fichiers et les dossiers.
|
- Gestionnaire de fichiers : droit des éditeurs sur les fichiers et les dossiers.
|
||||||
|
- Sitemap : génération des URL sans slash.
|
||||||
- Modifications :
|
- Modifications :
|
||||||
- Langues étrangères :
|
- Langues étrangères :
|
||||||
- Traduction des étiquettes Carte du site, Rechercher et Mentions légales dans le pied de page.
|
- Traduction des étiquettes Carte du site, Rechercher et Mentions légales dans le pied de page.
|
||||||
|
@ -906,7 +906,7 @@ class common {
|
|||||||
}
|
}
|
||||||
// Page désactivée, traiter les sous-pages sans prendre en compte la page parente.
|
// Page désactivée, traiter les sous-pages sans prendre en compte la page parente.
|
||||||
if ($this->getData(['page', $parentPageId, 'disable']) !== true ) {
|
if ($this->getData(['page', $parentPageId, 'disable']) !== true ) {
|
||||||
$sitemap->addUrl ($parentPageId,$datetime);
|
$sitemap->addUrl ('/' . $parentPageId,$datetime);
|
||||||
}
|
}
|
||||||
// Articles du blog
|
// Articles du blog
|
||||||
if ($this->getData(['page', $parentPageId, 'moduleId']) === 'blog' &&
|
if ($this->getData(['page', $parentPageId, 'moduleId']) === 'blog' &&
|
||||||
@ -914,7 +914,7 @@ class common {
|
|||||||
foreach($this->getData(['module',$parentPageId,'posts']) as $articleId => $article) {
|
foreach($this->getData(['module',$parentPageId,'posts']) as $articleId => $article) {
|
||||||
if($this->getData(['module',$parentPageId,'posts',$articleId,'state']) === true) {
|
if($this->getData(['module',$parentPageId,'posts',$articleId,'state']) === true) {
|
||||||
$date = $this->getData(['module',$parentPageId,'posts',$articleId,'publishedOn']);
|
$date = $this->getData(['module',$parentPageId,'posts',$articleId,'publishedOn']);
|
||||||
$sitemap->addUrl( $parentPageId . '/' . $articleId , new DateTime("@{$date}",new DateTimeZone($timezone)));
|
$sitemap->addUrl('/' . $parentPageId . '/' . $articleId , new DateTime("@{$date}",new DateTimeZone($timezone)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -923,7 +923,7 @@ class common {
|
|||||||
if ($this->getData(['page',$childKey,'group']) !== 0 || $this->getData(['page', $childKey, 'disable']) === true) {
|
if ($this->getData(['page',$childKey,'group']) !== 0 || $this->getData(['page', $childKey, 'disable']) === true) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$sitemap->addUrl($childKey,$datetime);
|
$sitemap->addUrl('/' . $childKey,$datetime);
|
||||||
|
|
||||||
// La sous-page est un blog
|
// La sous-page est un blog
|
||||||
if ($this->getData(['page', $childKey, 'moduleId']) === 'blog' &&
|
if ($this->getData(['page', $childKey, 'moduleId']) === 'blog' &&
|
||||||
@ -931,7 +931,7 @@ class common {
|
|||||||
foreach($this->getData(['module',$childKey,'posts']) as $articleId => $article) {
|
foreach($this->getData(['module',$childKey,'posts']) as $articleId => $article) {
|
||||||
if($this->getData(['module',$childKey,'posts',$articleId,'state']) === true) {
|
if($this->getData(['module',$childKey,'posts',$articleId,'state']) === true) {
|
||||||
$date = $this->getData(['module',$childKey,'posts',$articleId,'publishedOn']);
|
$date = $this->getData(['module',$childKey,'posts',$articleId,'publishedOn']);
|
||||||
$sitemap->addUrl( $childKey . '/' . $articleId , new DateTime("@{$date}",new DateTimeZone($timezone)));
|
$sitemap->addUrl( '/' . $childKey . '/' . $articleId , new DateTime("@{$date}",new DateTimeZone($timezone)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user