M
M
MaximMRX2018-07-23 08:11:49
1C-Bitrix
MaximMRX, 2018-07-23 08:11:49

How does the component work in Bitrix?

Good day, dear users.
There is such an element on the site. I'm trying to find it in the code and edit it.
5b556336763df795489341.png
I found a template for this component, now I'm trying to figure out where to find these 4 elements? Where can they be stored?

<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();

$this->setFrameMode(true);

if(count($arResult["ITEMS"]) < 1)
  return;?>

<div class="advantages">
  <?foreach($arResult["ITEMS"] as $arItem):?>
    <div class="adv-item">		
      <div class="adv-icon">
        <i class="fa<?=(!empty($arItem['DISPLAY_PROPERTIES']['ICON']['VALUE'])) ? ' '.$arItem['DISPLAY_PROPERTIES']['ICON']['VALUE'] : ''?>"></i>
      </div>
      <div class="adv-text">
        <?=$arItem['NAME']?>
      </div>
    </div>
  <?endforeach;?>
</div>

And here is the code for calling the component as I understand it
<?global $arAdvFilter;?>
<?$APPLICATION->IncludeComponent("bitrix:news.list", "advantages", 
  array(
    "IBLOCK_TYPE" => "content",
    "IBLOCK_ID" => "8",
    "NEWS_COUNT" => "10",
    "SORT_BY1" => "SORT",
    "SORT_ORDER1" => "ASC",
    "SORT_BY2" => "ACTIVE_FROM",
    "SORT_ORDER2" => "DESC",
    "FILTER_NAME" => "arAdvFilter",
    "FIELD_CODE" => array(),
    "PROPERTY_CODE" => array(
      0 => "ICON"			
    ),
    "CHECK_DATES" => "Y",
    "DETAIL_URL" => "",
    "AJAX_MODE" => "N",
    "AJAX_OPTION_SHADOW" => "Y",
    "AJAX_OPTION_JUMP" => "N",
    "AJAX_OPTION_STYLE" => "Y",
    "AJAX_OPTION_HISTORY" => "N",
    "CACHE_TYPE" => "A",
    "CACHE_TIME" => "36000000",
    "CACHE_FILTER" => "Y",
    "CACHE_GROUPS" => "Y",
    "PREVIEW_TRUNCATE_LEN" => "",
    "ACTIVE_DATE_FORMAT" => "d.m.Y",
    "DISPLAY_PANEL" => "N",
    "SET_TITLE" => "N",
    "SET_STATUS_404" => "N",
    "INCLUDE_IBLOCK_INTO_CHAIN" => "N",
    "ADD_SECTIONS_CHAIN" => "N",
    "HIDE_LINK_WHEN_NO_DETAIL" => "N",
    "PARENT_SECTION" => "",
    "PARENT_SECTION_CODE" => "",
    "DISPLAY_NAME" => "N",
    "DISPLAY_DATE" => "N",
    "DISPLAY_TOP_PAGER" => "N",
    "DISPLAY_BOTTOM_PAGER" => "N",
    "PAGER_SHOW_ALWAYS" => "N",
    "PAGER_TEMPLATE" => "",
    "PAGER_DESC_NUMBERING" => "N",
    "PAGER_DESC_NUMBERING_CACHE_TIME" => "3600",
    "PAGER_SHOW_ALL" => "N",
    "AJAX_OPTION_ADDITIONAL" => ""
  ),
  false,
  array("HIDE_ICONS" => isset($arAdvFilter["HIDE_ICONS"]) && $arAdvFilter["HIDE_ICONS"] == "Y" ? "Y" : "N")	
);?>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
MaximMRX, 2018-07-23
@GM_pAnda

Understood. Found these items in the content tab by ID ("IBLOCK_ID")

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question