Answer the question
In order to leave comments, you need to log in
How to make changes to the parameters of the Bitrix component?
In the screenshot, the place where I want to add my value, for example, my date property.
I will output it through result_modifier.php
something like this:
<?
//вывожу дату
$IBLOCK_ID = intval($arParams['IBLOCK_ID']);
//print $IBLOCK_ID;
if(!CModule::IncludeModule("iblock"))
die('iblock module is not included!');
$arSort = Array("SORT"=>"ASC", "NAME"=>"ASC");
$arSelect = Array("ID","NAME","PROPERTY_DATA_SOBYTIYA");
$arFilter = Array("IBLOCK_ID"=>$IBLOCK_ID,"ACTIVE" => "Y", ">=DATE_ACTIVE_FROM" => $curdate, "PROPERTY" => array('ADD_TO_EVENTS' => array('VALUE' => 'Y')), "<=DATE_ACTIVE_FROM" => $curdatelast);
$arFilterDate = Array("IBLOCK_ID" => $IBLOCK_ID);
$obIBlockResult = CIBlockElement::GetList($arSort, $arFilter, false, false, $arSelect);
$arFilter = $obIBlockResult->GetNext();
?>
Answer the question
In order to leave comments, you need to log in
.parameters.php file in the component template
here is an example https://dev.1c-bitrix.ru/community/webdev/user/119...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question