diff --git a/Application/Controllers/Admin/d3manufacturerlongtext.php b/Application/Controllers/Admin/d3manufacturerlongtext.php index 72302c7..4d89084 100644 --- a/Application/Controllers/Admin/d3manufacturerlongtext.php +++ b/Application/Controllers/Admin/d3manufacturerlongtext.php @@ -1,13 +1,13 @@ _aViewData["editor"] = $this->_generateTextEditor("100%", 300, $oManufacturer, "oxmanufacturer__".$this->sFieldName, "list.tpl.css"); + $this->_aViewData["editor"] = $this->_generateTextEditor("100%", 300, $oManufacturer, "oxmanufacturers__".$this->sFieldName, "list.tpl.css"); return $tpl; } + public function save() + { + parent::save(); + + $soxId = $this->getEditObjectId(); + $aParams = Registry::getRequest()->getRequestEscapedParameter("editval"); + + $manufacturer = oxNew( Manufacturer::class); + $selectedLang = Registry::getRequest()->getRequestEscapedParameter( "selectedlang"); + $selectedLang = $selectedLang ?: 0; + + if ($soxId != "-1") { + $manufacturer->loadInLang($selectedLang, $soxId); + } else { + $aParams['oxmanufacturers__oxid'] = null; + } + + //Disable editing for derived items + if ($manufacturer->isDerived()) { + return; + } + + $manufacturer->setLanguage(0); + $manufacturer->assign($aParams); + $manufacturer->setLanguage($selectedLang); + $manufacturer->save(); + + // set oxid if inserted + $this->setEditObjectId($manufacturer->getId()); + } + public function getFieldName() { return $this->sFieldName; diff --git a/Application/Controllers/Admin/d3manufacturerlongtext1.php b/Application/Controllers/Admin/d3manufacturerlongtext1.php index c78224c..e626810 100644 --- a/Application/Controllers/Admin/d3manufacturerlongtext1.php +++ b/Application/Controllers/Admin/d3manufacturerlongtext1.php @@ -1,6 +1,6 @@ getActiveClassName() == 'manufacturerlist' && $actCategory && $actCategory->oxmanufacturers__d3longdesc1->value }] +
- Hinweise:' - . 'Voraussetzungen:
' - . 'Datenbank-Felder:
' - . '- oxcategories__d3longdesc2
' - . '- oxcategories__d3longdesc2_1
' - . '- oxcategories__d3longdesc2_2
' - . '- oxcategories__d3longdesc2_3
' - . 'Diese Erweiterung bietet einen zweiten Kategorielangtext.
' // - . 'Angezeigt wird der zweite Langtext unter der Artikelauflistung in der Listenansicht. + Hinweise: + Voraussetzungen:
+ Datenbank-Felder:
+ - oxcategories__d3longdesc2
+ - oxcategories__d3longdesc2_1
+ - oxcategories__d3longdesc2_2
+ - oxcategories__d3longdesc2_3
+ Diese Erweiterung bietet einen zweiten Kategorielangtext.
+ Angezeigt wird der zweite Langtext unter der Artikelauflistung in der Listenansicht.