forked from ZwiiCMS-Team/ZwiiCMS
[9.2.17] fix breadcrumb
This commit is contained in:
parent
7208d38448
commit
7fd49fd33d
@ -1,5 +1,9 @@
|
|||||||
# Changelog
|
# 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
|
## version 9.2.16
|
||||||
- Optimisation :
|
- Optimisation :
|
||||||
- Sauvegarde manuelle des données de site (dossiers file et data).
|
- Sauvegarde manuelle des données de site (dossiers file et data).
|
||||||
|
@ -34,7 +34,7 @@ class common {
|
|||||||
const TEMP_DIR = 'site/tmp/';
|
const TEMP_DIR = 'site/tmp/';
|
||||||
|
|
||||||
// Numéro de version
|
// Numéro de version
|
||||||
const ZWII_VERSION = '9.2.16';
|
const ZWII_VERSION = '9.2.17';
|
||||||
|
|
||||||
public static $actions = [];
|
public static $actions = [];
|
||||||
public static $coreModuleIds = [
|
public static $coreModuleIds = [
|
||||||
@ -1303,17 +1303,17 @@ class core extends common {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Breadcrumb
|
// Breadcrumb
|
||||||
|
|
||||||
$title = $this->getData(['page', $this->getUrl(0), 'title']);
|
$title = $this->getData(['page', $this->getUrl(0), 'title']);
|
||||||
if (!empty($this->getData(['page', $this->getUrl(0), 'parentPageId'])) &&
|
if (!empty($this->getData(['page', $this->getUrl(0), 'parentPageId'])) &&
|
||||||
$this->getData(['page', $this->getUrl(0), 'breadCrumb'])) {
|
$this->getData(['page', $this->getUrl(0), 'breadCrumb'])) {
|
||||||
$title = '<a href="' . helper::baseUrl() .
|
$title = '<a href="' . helper::baseUrl() .
|
||||||
$this->getData(['page', $this->getUrl(0), 'parentPageId']) .
|
$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> › '.
|
'</a> › '.
|
||||||
$this->getData(['page', $this->getUrl(0), 'title']);
|
$this->getData(['page', $this->getUrl(0), 'title']);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Importe la page
|
// Importe la page
|
||||||
if(
|
if(
|
||||||
$this->getData(['page', $this->getUrl(0)]) !== null
|
$this->getData(['page', $this->getUrl(0)]) !== null
|
||||||
|
Loading…
Reference in New Issue
Block a user