我需要在名称为的组件中显示目录说明:catalog.list。
$arResult["DESCRIPTION"]此组件中未指定。里面有货物清单$arResult。
如何强制组件请求目录DESCRIPTION?
页面上没有catalog.section组件(具有$arResult["DESCRIPTION"]),因为我使用的站点模板缺少很多功能。
您可以result_modifier.php在您的组件模板目录中使用。添加
$res = CIBlockSection::GetByID($_GET["GID"]);
if($ar_res = $res->GetNext())
$arResult['DECRTIPTION'] = $ar_res['DECRTIPTION'];
更多信息:https ://dev.1c-bitrix.ru/api_help/iblock/classes/ciblocksection/getbyid.php
享受。