- Beschreibungsfeld für Content hinzugefügt

- Spacer für CMS Menüs hinzugefügt
This commit is contained in:
Andreas Österreicher
2011-08-08 11:35:35 +00:00
parent 4b435a3b1f
commit ea5db70d25
5 changed files with 134 additions and 27 deletions
+9 -2
View File
@@ -79,8 +79,8 @@ $berechtigte_oe = $rechte->getOEkurzbz('basis/cms')
theme_advanced_resizing : true,
force_br_newlines : true,
force_p_newlines : false,
forced_root_block : ''
forced_root_block : '',
editor_deselector : "mceNoEditor"
}
);
function FHCFileBrowser(field_name, url, type, win)
@@ -197,6 +197,7 @@ if(!is_null($method))
$content->sprache=DEFAULT_LANGUAGE;
$content->insertvon = $user;
$content->insertamum = date('Y-m-d H:i:s');
$content->beschreibung = '';
if($content->save())
{
@@ -336,6 +337,7 @@ if(!is_null($method))
$aktiv=isset($_POST['aktiv']);
$menu_open=isset($_POST['menu_open']);
$template_kurzbz = $_POST['template_kurzbz'];
$beschreibung = $_POST['beschreibung'];
if($content->getContent($content_id, $sprache, $version))
{
@@ -347,6 +349,7 @@ if(!is_null($method))
$content->template_kurzbz = $template_kurzbz;
$content->updateamum=date('Y-m-d H:i:s');
$content->updatevon=$user;
$content->beschreibung = $beschreibung;
if($content->save())
{
@@ -1009,6 +1012,10 @@ function print_prefs()
<td>Menü offen</td>
<td><input type="checkbox" name="menu_open" '.($content->menu_open?'checked':'').'></td>
</tr>
<tr>
<td>Beschreibung</td>
<td><textarea name="beschreibung" cols="50" class="mceNoEditor" >'.$content->beschreibung.'</textarea></td>
</tr>
<tr>
<td></td>
<td><hr></td>
+42
View File
@@ -0,0 +1,42 @@
<?php
/* Copyright (C) 2011 FH Technikum-Wien
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
*
* Authors: Andreas Oesterreicher <[email protected]>
*/
/**
* Addon fuer Abstandhalter im Menuebaum
*/
require_once(dirname(__FILE__).'/menu_addon.class.php');
class menu_addon_spacer extends menu_addon
{
public function __construct()
{
parent::__construct();
$this->link=false;
$this->block='
<br /><br />
';
$this->output();
}
}
new menu_addon_spacer();
?>