A
A
Alexander Ivanov2016-06-29 10:24:00
PHP
Alexander Ivanov, 2016-06-29 10:24:00

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.
83816f98953249b9a1509b7412298bd8.png
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();
  ?>

Thanks in advance, even for a link to the right lesson, or an appropriate article.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Zakharov, 2016-06-29
@cimonlebedev

.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 question

Ask a Question

731 491 924 answers to any question