[9.2.17] fix breadcrumb

This commit is contained in:
fredtempez 2020-01-08 17:58:13 +01:00
parent 7208d38448
commit 7fd49fd33d
2 changed files with 7 additions and 3 deletions

View File

@ -1,5 +1,9 @@
# Changelog
## version 9.2.17
- Corretion :
- Affiche le nom du la page plutôt que son id dans le fil d'ariane
## version 9.2.16
- Optimisation :
- Sauvegarde manuelle des données de site (dossiers file et data).

View File

@ -34,7 +34,7 @@ class common {
const TEMP_DIR = 'site/tmp/';
// Numéro de version
const ZWII_VERSION = '9.2.16';
const ZWII_VERSION = '9.2.17';
public static $actions = [];
public static $coreModuleIds = [
@ -1303,17 +1303,17 @@ class core extends common {
}
// Breadcrumb
$title = $this->getData(['page', $this->getUrl(0), 'title']);
if (!empty($this->getData(['page', $this->getUrl(0), 'parentPageId'])) &&
$this->getData(['page', $this->getUrl(0), 'breadCrumb'])) {
$title = '<a href="' . helper::baseUrl() .
$this->getData(['page', $this->getUrl(0), 'parentPageId']) .
'">' .
ucfirst($this->getData(['page', $this->getUrl(0), 'parentPageId'])) .
ucfirst($this->getData(['page',$this->getData(['page', $this->getUrl(0), 'parentPageId']), 'title'])) .
'</a> &#8250; '.
$this->getData(['page', $this->getUrl(0), 'title']);
}
// Importe la page
if(
$this->getData(['page', $this->getUrl(0)]) !== null