A
A
albush2020-10-30 12:01:46
1C-Bitrix
albush, 2020-10-30 12:01:46

Detail and preview images are not displayed in the section, what is the error?

Detail and preview images are not displayed in the site section. Where is the mistake?

File code "index.php":

<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
$APPLICATION->SetTitle("");?><?$APPLICATION->IncludeComponent(
  "bitrix:news", 
  "action", 
  array(
    "ADD_ELEMENT_CHAIN" => "Y",
    "ADD_SECTIONS_CHAIN" => "N",
    "AJAX_MODE" => "N",
    "AJAX_OPTION_ADDITIONAL" => "",
    "AJAX_OPTION_HISTORY" => "N",
    "AJAX_OPTION_JUMP" => "N",
    "AJAX_OPTION_STYLE" => "Y",
    "BROWSER_TITLE" => "-",
    "CACHE_FILTER" => "Y",
    "CACHE_GROUPS" => "Y",
    "CACHE_TIME" => "36000000",
    "CACHE_TYPE" => "A",
    "CHECK_DATES" => "Y",
    "DETAIL_ACTIVE_DATE_FORMAT" => "j F Y",
    "DETAIL_DISPLAY_BOTTOM_PAGER" => "N",
    "DETAIL_DISPLAY_TOP_PAGER" => "N",
    "DETAIL_FIELD_CODE" => array(
      0 => "",
      1 => "",
    ),
    "DETAIL_PAGER_SHOW_ALL" => "N",
    "DETAIL_PAGER_TEMPLATE" => "",
    "DETAIL_PAGER_TITLE" => "Страница",
    "DETAIL_PROPERTY_CODE" => array(
      0 => "",
      1 => "",
    ),
    "DETAIL_SET_CANONICAL_URL" => "N",
    "DISPLAY_BOTTOM_PAGER" => "Y",
    "DISPLAY_DATE" => "Y",
    "DISPLAY_NAME" => "Y",
    "DISPLAY_PICTURE" => "Y",
    "DISPLAY_PREVIEW_TEXT" => "Y",
    "DISPLAY_TOP_PAGER" => "Y",
    "FILE_404" => "/404.php",
    "HIDE_LINK_WHEN_NO_DETAIL" => "N",
    "IBLOCK_ID" => "18",
    "IBLOCK_TYPE" => "catalog",
    "INCLUDE_IBLOCK_INTO_CHAIN" => "N",
    "LIST_ACTIVE_DATE_FORMAT" => "j F Y",
    "LIST_FIELD_CODE" => array(
      0 => "",
      1 => "",
    ),
    "LIST_PROPERTY_CODE" => array(
      0 => "",
      1 => "",
    ),
    "MESSAGE_404" => "",
    "META_DESCRIPTION" => "-",
    "META_KEYWORDS" => "-",
    "NEWS_COUNT" => "9",
    "PAGER_BASE_LINK_ENABLE" => "N",
    "PAGER_DESC_NUMBERING" => "N",
    "PAGER_DESC_NUMBERING_CACHE_TIME" => "36000",
    "PAGER_SHOW_ALL" => "Y",
    "PAGER_SHOW_ALWAYS" => "N",
    "PAGER_TEMPLATE" => "orange",
    "PAGER_TITLE" => "Новости",
    "PREVIEW_TRUNCATE_LEN" => "",
    "SEF_FOLDER" => "/novosti-partnerov/",
    "SEF_MODE" => "Y",
    "SET_LAST_MODIFIED" => "N",
    "SET_STATUS_404" => "Y",
    "SET_TITLE" => "N",
    "SHOW_404" => "Y",
    "SORT_BY1" => "ACTIVE_FROM",
    "SORT_BY2" => "ID",
    "SORT_ORDER1" => "DESC",
    "SORT_ORDER2" => "DESC",
    "STRICT_SECTION_CHECK" => "N",
    "USE_CATEGORIES" => "N",
    "USE_FILTER" => "N",
    "USE_PERMISSIONS" => "N",
    "USE_RATING" => "N",
    "USE_RSS" => "Y",
    "USE_SEARCH" => "N",
    "USE_SHARE" => "N",
    "COMPONENT_TEMPLATE" => "action",
    "NUM_NEWS" => "100",
    "NUM_DAYS" => "30",
    "YANDEX" => "Y",
    "SEF_URL_TEMPLATES" => array(
      "news" => "",
      "section" => "",
      "detail" => "#ELEMENT_CODE#/",

    )
  ),
  false
);?><?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");?>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2020-10-30
@anton99zel

So write them down

"LIST_FIELD_CODE" => array(
0 => "NAME",
1 => "PREVIEW_TEXT",
2 => "PREVIEW_PICTURE",
),

and
"DETAIL_FIELD_CODE" => array(
0 => "NAME",
1 => "PREVIEW_TEXT",
2 => "PREVIEW_PICTURE",
),

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question