Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
ca09b4ff24 | |||
563741bc86 | |||
38fa707dea | |||
39b24479fd | |||
4e8a02fba1 | |||
0d05a3ec49 |
@ -103,7 +103,7 @@ class ManufacturerInfoLongdesc extends AdminDetailsController
|
|||||||
*/
|
*/
|
||||||
public function d3GetLongdescParamValue(): string
|
public function d3GetLongdescParamValue(): string
|
||||||
{
|
{
|
||||||
return (string) $aParams = Registry::getRequest()->getRequestEscapedParameter("editval")['oxmanufacturers__d3description'];
|
return (string) Registry::getRequest()->getRequestEscapedParameter("editval")['oxmanufacturers__d3description'];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
<input type="hidden" name="catlang" value="[{$catlang}]">
|
<input type="hidden" name="catlang" value="[{$catlang}]">
|
||||||
<input type="hidden" name="editval[oxmanufacturers__d3description]" value="">
|
<input type="hidden" name="editval[oxmanufacturers__d3description]" value="">
|
||||||
|
|
||||||
<div style="margin-bottom: 40px">
|
<div style="margin-bottom: 40px; padding-bottom: 60px">
|
||||||
[{include file="include/category_text_editor.tpl"}]
|
[{include file="include/category_text_editor.tpl"}]
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
11
CHANGELOG.md
11
CHANGELOG.md
@ -4,7 +4,16 @@ All notable changes to this project will be documented in this file.
|
|||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
## [unreleased](https://git.d3data.de/D3Private/manufacturer-information/compare/1.0.3.1...rel_1.x)
|
## [unreleased](https://git.d3data.de/D3Private/manufacturer-information/compare/1.0.4.1...rel_1.x)
|
||||||
|
|
||||||
|
## [1.0.4.1](https://git.d3data.de/D3Private/manufacturer-information/compare/1.0.4.0...1.0.4.1) - 2024-12-12
|
||||||
|
### Fixed
|
||||||
|
- fix wrong admin menu section
|
||||||
|
|
||||||
|
## [1.0.4.0](https://git.d3data.de/D3Private/manufacturer-information/compare/1.0.3.1...1.0.4.0) - 2024-12-05
|
||||||
|
|
||||||
|
### Added
|
||||||
|
- longdesc will parsed by Smarty
|
||||||
|
|
||||||
## [1.0.3.1](https://git.d3data.de/D3Private/manufacturer-information/compare/1.0.3.0...1.0.3.1) - 2024-11-26
|
## [1.0.3.1](https://git.d3data.de/D3Private/manufacturer-information/compare/1.0.3.0...1.0.3.1) - 2024-11-26
|
||||||
### Fixed
|
### Fixed
|
||||||
|
@ -47,7 +47,7 @@ class D3ManufacturerLongDesc extends D3ManufacturerLongDesc_parent
|
|||||||
*/
|
*/
|
||||||
public function d3GetLongdesc(): Field
|
public function d3GetLongdesc(): Field
|
||||||
{
|
{
|
||||||
$longName = $this->getCoreTableName().'__'.strtolower(Constants::D3_OXMANUFACTURERS_LONGDESC_FIELDNAME);
|
$longName = $this->_getFieldLongName(Constants::D3_OXMANUFACTURERS_LONGDESC_FIELDNAME);
|
||||||
return $this->$longName;
|
return $this->$longName ?: oxNew(Field::class);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -34,12 +34,22 @@ class ManufacturerInfoList extends ManufacturerInfoList_parent
|
|||||||
parent::_addCategoryFields($oManufacturer);
|
parent::_addCategoryFields($oManufacturer);
|
||||||
|
|
||||||
if (Registry::getConfig()->getConfigParam('d3manufacturerinformation_showManufacturertextOnManufacturerPage')) {
|
if (Registry::getConfig()->getConfigParam('d3manufacturerinformation_showManufacturertextOnManufacturerPage')) {
|
||||||
$oManufacturer->oxcategories__oxlongdesc = new Field(
|
/** @var \OxidEsales\Eshop\Core\UtilsView $oUtilsView */
|
||||||
html_entity_decode(
|
$oUtilsView = Registry::getUtilsView();
|
||||||
$oManufacturer->getFieldData( Constants::D3_OXMANUFACTURERS_LONGDESC_FIELDNAME ) ?? ''
|
|
||||||
),
|
$longdesc = $oManufacturer->d3GetLongdesc()->getRawValue() ?? '';
|
||||||
Field::T_RAW
|
$deactivateSmarty = Registry::getConfig()->getConfigParam('deactivateSmartyForCmsContent');
|
||||||
);
|
$processLongDescriptions = Registry::getConfig()->getConfigParam('bl_perfParseLongDescinSmarty');
|
||||||
|
if (!$deactivateSmarty && $processLongDescriptions) {
|
||||||
|
$longdesc = $oUtilsView->parseThroughSmarty(
|
||||||
|
$longdesc,
|
||||||
|
$oManufacturer->getId() . $oManufacturer->getLanguage(),
|
||||||
|
null,
|
||||||
|
true
|
||||||
|
) ?? '';
|
||||||
|
}
|
||||||
|
|
||||||
|
$oManufacturer->oxcategories__oxlongdesc = new Field(html_entity_decode($longdesc), Field::T_RAW);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
2
menu.xml
2
menu.xml
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="ISO-8859-15"?>
|
<?xml version="1.0" encoding="ISO-8859-15"?>
|
||||||
<OX>
|
<OX>
|
||||||
<OXMENU id="NAVIGATION_ESHOPADMIN">
|
<OXMENU id="NAVIGATION_ESHOPADMIN">
|
||||||
<MAINMENU id="mxuadmin">
|
<MAINMENU id="mxmainmenu">
|
||||||
<SUBMENU id="mxmanufacturer" cl="manufacturer" list="manufacturer_list">
|
<SUBMENU id="mxmanufacturer" cl="manufacturer" list="manufacturer_list">
|
||||||
<TAB id="mxd3manufacturerinfolongdesc" cl="d3manufacturerinfolongdesc" />
|
<TAB id="mxd3manufacturerinfolongdesc" cl="d3manufacturerinfolongdesc" />
|
||||||
</SUBMENU>
|
</SUBMENU>
|
||||||
|
@ -39,7 +39,7 @@ $aModule = [
|
|||||||
'en' => 'adds manufacturer information to the article list',
|
'en' => 'adds manufacturer information to the article list',
|
||||||
],
|
],
|
||||||
'thumbnail' => 'picture.svg',
|
'thumbnail' => 'picture.svg',
|
||||||
'version' => '1.0.3.1',
|
'version' => '1.0.4.1',
|
||||||
'author' => $logo.' Data Development (Inh.: Thomas Dartsch)',
|
'author' => $logo.' Data Development (Inh.: Thomas Dartsch)',
|
||||||
'email' => 'support@shopmodule.com',
|
'email' => 'support@shopmodule.com',
|
||||||
'url' => 'https://www.oxidmodule.com/',
|
'url' => 'https://www.oxidmodule.com/',
|
||||||
|
Reference in New Issue
Block a user