can parse manufacturer longdesc which includes Smarty tags
This commit is contained in:
parent
b81c779b43
commit
6c0a476c80
@ -47,11 +47,18 @@ class ManufacturerInfoList extends ManufacturerInfoList_parent
|
|||||||
$deactivateSmarty = Registry::getConfig()->getConfigParam('deactivateSmartyForCmsContent');
|
$deactivateSmarty = Registry::getConfig()->getConfigParam('deactivateSmartyForCmsContent');
|
||||||
$processLongDescriptions = Registry::getConfig()->getConfigParam('bl_perfParseLongDescinSmarty');
|
$processLongDescriptions = Registry::getConfig()->getConfigParam('bl_perfParseLongDescinSmarty');
|
||||||
if (!$deactivateSmarty && $processLongDescriptions) {
|
if (!$deactivateSmarty && $processLongDescriptions) {
|
||||||
|
$viewData = array_merge(
|
||||||
|
Registry::getConfig()->getActiveView()->getViewData(),
|
||||||
|
[
|
||||||
|
'oShop' => Registry::getConfig()->getActiveShop(),
|
||||||
|
'oViewConf' => Registry::getConfig()->getActiveView()->getViewConfig()
|
||||||
|
]
|
||||||
|
);
|
||||||
|
|
||||||
$longdesc = $this->getRenderer()->renderFragment(
|
$longdesc = $this->getRenderer()->renderFragment(
|
||||||
$longdesc,
|
$longdesc,
|
||||||
$oManufacturer->getId() . $oManufacturer->getLanguage(),
|
sprintf('ox:%s%s', $oManufacturer->getId(), $oManufacturer->getLanguage()),
|
||||||
[],
|
$viewData
|
||||||
true
|
|
||||||
) ?? '';
|
) ?? '';
|
||||||
}
|
}
|
||||||
$oManufacturer->oxcategories__oxlongdesc = new Field(html_entity_decode($longdesc), Field::T_RAW);
|
$oManufacturer->oxcategories__oxlongdesc = new Field(html_entity_decode($longdesc), Field::T_RAW);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user