openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 265da1e4d075617393229c39b2a953ddc9fc6c1a
parent 635c6968fd91312a0b195d27b94497b22dcb375f
Author: Jan Dankert <devnull@localhost>
Date:   Tue, 25 Sep 2018 21:27:24 +0200

Beim Aufklappen von Seiten im Navigationsbaum lassen sich die Inhalte nun auch öffnen.

Diffstat:
modules/cms-core/model/Value.class.php | 9++++++++-
modules/util/Tree.class.php | 10++++++----
2 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/modules/cms-core/model/Value.class.php b/modules/cms-core/model/Value.class.php @@ -140,7 +140,14 @@ class Value */ public $simple; - /** + + /** + * Sprach-Id. + * @var int + */ + public $languageid; + + /** * Konstruktor */ function __construct() diff --git a/modules/util/Tree.class.php b/modules/util/Tree.class.php @@ -244,7 +244,7 @@ class Tree $this->addTreeElement($treeElement); - // Suche +/* // Suche $treeElement = new TreeElement(); $treeElement->id = $projectid; $treeElement->internalId = $projectid; @@ -254,7 +254,7 @@ class Tree $treeElement->action = 'search'; $treeElement->icon = 'search'; $treeElement->description = lang('GLOBAL_SEARCH_DESC'); - $this->addTreeElement($treeElement); + $this->addTreeElement($treeElement);*/ } @@ -356,11 +356,11 @@ class Tree if ($element->isWritable()) { $treeElement = new TreeElement(); $treeElement->id = $id . '_' . $elementid; - $treeElement->extraId['elementid'] = $elementid; + $treeElement->internalId = $id . '_' . $elementid; $treeElement->text = $element->name; $treeElement->action = 'pageelement'; $treeElement->icon = 'el_' . $element->type; - $treeElement->extraId = array(REQ_PARAM_LANGUAGE_ID => $page->languageid, REQ_PARAM_MODEL_ID => $page->modelid); + $treeElement->extraId = array('elementid' => $elementid, REQ_PARAM_LANGUAGE_ID => $page->languageid, REQ_PARAM_MODEL_ID => $page->modelid); $treeElement->description = lang('EL_' . $element->type); @@ -399,6 +399,7 @@ class Tree $treeElement = new TreeElement(); $treeElement->id = $id; + $treeElement->internalId = $id; $treeElement->text = $object->name; if (in_array($object->getType(), array('page', 'folder'))) { $treeElement->type = $object->getType(); @@ -406,6 +407,7 @@ class Tree } $treeElement->action = $object->getType(); $treeElement->icon = $object->getType(); + $treeElement->extraId = array(REQ_PARAM_LANGUAGE_ID => $value->languageid); $treeElement->description = lang('GLOBAL_' . $object->getType()); if ($object->desc != '')