From 7a75eb34728d807e4c51ce6b03859cd92b4ffb6e Mon Sep 17 00:00:00 2001 From: fredtempez Date: Tue, 14 Nov 2023 15:39:38 +0100 Subject: [PATCH] tinymce gen page title --- core/core.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/core.php b/core/core.php index 77f94e2d..41b9c2e0 100644 --- a/core/core.php +++ b/core/core.php @@ -786,7 +786,7 @@ class common // Boucler sur les enfants et récupérer le tableau children avec la liste des enfants foreach ($childIds as $childId) { $children[] = [ - 'title' => '↳' . html_entity_decode($this->getData(['page', $childId, 'shortTitle']), ENT_QUOTES), + 'title' => '↳' . html_entity_decode($this->getData(['page', $childId, 'title']), ENT_QUOTES), 'value' => $rewrite . $childId ]; } @@ -794,18 +794,18 @@ class common if (empty($childIds)) { // Pas d'enfant, uniquement l'entrée du parent $parents[] = [ - 'title' => html_entity_decode($this->getData(['page', $parentId, 'shortTitle']), ENT_QUOTES), + 'title' => html_entity_decode($this->getData(['page', $parentId, 'title']), ENT_QUOTES), 'value' => $rewrite . $parentId ]; } else { // Des enfants, on ajoute la page parent en premier array_unshift($children, [ - 'title' => html_entity_decode($this->getData(['page', $parentId, 'shortTitle']), ENT_QUOTES), + 'title' => html_entity_decode($this->getData(['page', $parentId, 'title']), ENT_QUOTES), 'value' => $rewrite . $parentId ]); // puis on ajoute les enfants au parent $parents[] = [ - 'title' => html_entity_decode($this->getData(['page', $parentId, 'shortTitle']), ENT_QUOTES), + 'title' => html_entity_decode($this->getData(['page', $parentId, 'title']), ENT_QUOTES), 'value' => $rewrite . $parentId, 'menu' => $children ];