tinymce gen page title
This commit is contained in:
parent
2cff4db256
commit
7a75eb3472
@ -786,7 +786,7 @@ class common
|
|||||||
// Boucler sur les enfants et récupérer le tableau children avec la liste des enfants
|
// Boucler sur les enfants et récupérer le tableau children avec la liste des enfants
|
||||||
foreach ($childIds as $childId) {
|
foreach ($childIds as $childId) {
|
||||||
$children[] = [
|
$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
|
'value' => $rewrite . $childId
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
@ -794,18 +794,18 @@ class common
|
|||||||
if (empty($childIds)) {
|
if (empty($childIds)) {
|
||||||
// Pas d'enfant, uniquement l'entrée du parent
|
// Pas d'enfant, uniquement l'entrée du parent
|
||||||
$parents[] = [
|
$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
|
'value' => $rewrite . $parentId
|
||||||
];
|
];
|
||||||
} else {
|
} else {
|
||||||
// Des enfants, on ajoute la page parent en premier
|
// Des enfants, on ajoute la page parent en premier
|
||||||
array_unshift($children, [
|
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
|
'value' => $rewrite . $parentId
|
||||||
]);
|
]);
|
||||||
// puis on ajoute les enfants au parent
|
// puis on ajoute les enfants au parent
|
||||||
$parents[] = [
|
$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,
|
'value' => $rewrite . $parentId,
|
||||||
'menu' => $children
|
'menu' => $children
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user