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');
|
||||
$processLongDescriptions = Registry::getConfig()->getConfigParam('bl_perfParseLongDescinSmarty');
|
||||
if (!$deactivateSmarty && $processLongDescriptions) {
|
||||
$viewData = array_merge(
|
||||
Registry::getConfig()->getActiveView()->getViewData(),
|
||||
[
|
||||
'oShop' => Registry::getConfig()->getActiveShop(),
|
||||
'oViewConf' => Registry::getConfig()->getActiveView()->getViewConfig()
|
||||
]
|
||||
);
|
||||
|
||||
$longdesc = $this->getRenderer()->renderFragment(
|
||||
$longdesc,
|
||||
$oManufacturer->getId() . $oManufacturer->getLanguage(),
|
||||
[],
|
||||
true
|
||||
sprintf('ox:%s%s', $oManufacturer->getId(), $oManufacturer->getLanguage()),
|
||||
$viewData
|
||||
) ?? '';
|
||||
}
|
||||
$oManufacturer->oxcategories__oxlongdesc = new Field(html_entity_decode($longdesc), Field::T_RAW);
|
||||
|
Loading…
x
Reference in New Issue
Block a user