0

我需要在名称为的组件中显示目录说明:catalog.list

$arResult["DESCRIPTION"]此组件中未指定。里面有货物清单$arResult

如何强制组件请求目录DESCRIPTION

页面上没有catalog.section组件(具有$arResult["DESCRIPTION"]),因为我使用的站点模板缺少很多功能。

4

1 回答 1

0

您可以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

享受。

于 2016-04-05T07:54:11.943 回答