openrat-cms

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

commit 286702f78e66c30f169d80f51070cb1fc2e0f47c
parent 96e9959cb57f7043d8b03e191e8cf18c690e0983
Author: dankert <devnull@localhost>
Date:   Tue, 17 Mar 2009 02:09:46 +0100

Bearbeiten von Einfügen-Elementen ermöglichen.

Diffstat:
actionClasses/PageelementAction.class.php | 26+++++++++++++++++++++++---
themes/default/templates/pageelement/edit.tpl.src.php | 6++++++
2 files changed, 29 insertions(+), 3 deletions(-)

diff --git a/actionClasses/PageelementAction.class.php b/actionClasses/PageelementAction.class.php @@ -497,6 +497,17 @@ class PageelementAction extends Action */ function editlist() { + $this->editinsert(); + } + + + + /** + * Einf�gen-Element. + * + */ + function editinsert() + { // Auswahl ueber alle Elementtypen $objects = array(); foreach( Folder::getAllFolders() as $id ) @@ -517,8 +528,6 @@ class PageelementAction extends Action if ( $this->getSessionVar('pageaction') != '' ) $this->setTemplateVar('old_pageaction',$this->getSessionVar('pageaction')); else $this->setTemplateVar('old_pageaction','show' ); - - $this->forward('pageelement_edit_'.$this->value->element->type); } @@ -1091,7 +1100,6 @@ class PageelementAction extends Action - /** * Element speichern * @@ -1099,6 +1107,18 @@ class PageelementAction extends Action */ function savelist() { + $this->saveinsert(); + } + + + + /** + * Element speichern + * + * Der Inhalt eines Elementes wird abgespeichert + */ + function saveinsert() + { $value = new Value(); $language = Session::getProjectLanguage(); $value->languageid = $language->languageid; diff --git a/themes/default/templates/pageelement/edit.tpl.src.php b/themes/default/templates/pageelement/edit.tpl.src.php @@ -179,6 +179,12 @@ page selectbox list:objects name:linkobjectid focus field:linkobjectid + if value:var:type equals:insert + row + cell colspan:2 + selectbox list:objects name:linkobjectid + focus field:linkobjectid + if value:var:type equals:number row cell colspan:2