openrat-cms

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

commit 5f18cf64ba3e741853106afe7fa21507bb4ed1ab
parent baa5ddaadf80f8c1b7df67072a760a4dc87a859f
Author: dankert <devnull@localhost>
Date:   Sun, 27 May 2007 22:56:34 +0200

Sofortauswahl Template; Entfernen des Teilbaumes "Sonstiges", Ersetzt durch "Suche".

Diffstat:
serviceClasses/ProjectTree.class.php | 20+++++++++++++++-----
1 file changed, 15 insertions(+), 5 deletions(-)

diff --git a/serviceClasses/ProjectTree.class.php b/serviceClasses/ProjectTree.class.php @@ -316,12 +316,22 @@ class ProjectTree extends AbstractTree // Sonstiges +// $treeElement = new TreeElement(); +// $treeElement->text = lang('GLOBAL_OTHER'); +// $treeElement->description= lang('GLOBAL_OTHER_DESC'); +// $treeElement->icon = 'other'; +// $treeElement->type = 'other'; +// $this->addTreeElement( $treeElement ); + + // Suche $treeElement = new TreeElement(); - $treeElement->text = lang('GLOBAL_OTHER'); - $treeElement->description= lang('GLOBAL_OTHER_DESC'); - $treeElement->icon = 'other'; - $treeElement->type = 'other'; + $treeElement->text = lang('GLOBAL_SEARCH'); + $treeElement->url = Html::url('main','search'); + $treeElement->icon = 'search'; + $treeElement->description = lang('GLOBAL_SEARCH_DESC'); + $treeElement->target = 'cms_main'; $this->addTreeElement( $treeElement ); + } @@ -334,7 +344,7 @@ class ProjectTree extends AbstractTree $t = new Template( $id ); $t->load(); $treeElement->text = $t->name; - $treeElement->url = Html::url('main','template',$id); + $treeElement->url = Html::url('main','template',$id,array(REQ_PARAM_TARGETSUBACTION=>'edit')); $treeElement->icon = 'template'; $treeElement->target = 'cms_main'; $treeElement->internalId = $id;