A
A
Andrey Salnikov2015-06-03 08:28:11
1C-Bitrix
Andrey Salnikov, 2015-06-03 08:28:11

How to display text from a catalog in Bitrix?

There is a page that displays items from the catalog. When creating an element, there is a description column, but it is not displayed on the page. How can I do that? Here is the code that displays the elements:

<?$APPLICATION->IncludeComponent(
  "bitrix:catalog",
  "catalog_trodat",
  Array(
    "AJAX_MODE" => "N",
    "SEF_MODE" => "Y",
    "IBLOCK_TYPE" => "catalog",
    "IBLOCK_ID" => "1",
    "USE_FILTER" => "N",
    "USE_REVIEW" => "N",
    "USE_COMPARE" => "N",
    "SHOW_TOP_ELEMENTS" => "N",
    "SECTION_COUNT_ELEMENTS" => "Y",
    "SECTION_TOP_DEPTH" => "2",
    "PAGE_ELEMENT_COUNT" => "30",
    "LINE_ELEMENT_COUNT" => "3",
    "ELEMENT_SORT_FIELD" => "sort",
    "ELEMENT_SORT_ORDER" => "asc",
    "ELEMENT_SORT_FIELD2" => "id",
    "ELEMENT_SORT_ORDER2" => "desc",
    "LIST_PROPERTY_CODE" => array("INTERVAL_PRICE","COLOR","PRICE"),
    "INCLUDE_SUBSECTIONS" => "Y",
    "LIST_META_KEYWORDS" => "-",
    "LIST_META_DESCRIPTION" => "-",
    "LIST_BROWSER_TITLE" => "-",
    "DETAIL_PROPERTY_CODE" => array(),
    "DETAIL_META_KEYWORDS" => "-",
    "DETAIL_META_DESCRIPTION" => "-",
    "DETAIL_BROWSER_TITLE" => "-",
    "BASKET_URL" => "/basket/",
    "ACTION_VARIABLE" => "action",
    "PRODUCT_ID_VARIABLE" => "id",
    "SECTION_ID_VARIABLE" => "SECTION_ID",
    "PRODUCT_QUANTITY_VARIABLE" => "quantity",
    "PRODUCT_PROPS_VARIABLE" => "prop",
    "CACHE_TYPE" => "A",
    "CACHE_TIME" => "36000000",
    "CACHE_NOTES" => "",
    "CACHE_FILTER" => "N",
    "CACHE_GROUPS" => "Y",
    "SET_TITLE" => "Y",
    "SET_STATUS_404" => "N",
    "PRICE_CODE" => array(),
    "USE_PRICE_COUNT" => "N",
    "SHOW_PRICE_COUNT" => "1",
    "PRICE_VAT_INCLUDE" => "Y",
    "PRICE_VAT_SHOW_VALUE" => "N",
    "PRODUCT_PROPERTIES" => array(),
    "USE_PRODUCT_QUANTITY" => "Y",
    "LINK_IBLOCK_TYPE" => "",
    "LINK_IBLOCK_ID" => "",
    "LINK_PROPERTY_SID" => "",
    "LINK_ELEMENTS_URL" => "link.php?PARENT_ELEMENT_ID=#ELEMENT_ID#",
    "USE_ALSO_BUY" => "N",
    "USE_STORE" => "N",
    "USE_ELEMENT_COUNTER" => "Y",
    "DISPLAY_TOP_PAGER" => "Y",
    "DISPLAY_BOTTOM_PAGER" => "Y",
    "PAGER_TITLE" => "Товары",
    "PAGER_SHOW_ALWAYS" => "N",
    "PAGER_TEMPLATE" => "nav",
    "PAGER_DESC_NUMBERING" => "N",
    "PAGER_DESC_NUMBERING_CACHE_TIME" => "36000",
    "PAGER_SHOW_ALL" => "N",
    "HIDE_NOT_AVAILABLE" => "N",
    "CONVERT_CURRENCY" => "N",
    "QUANTITY_FLOAT" => "N",
    "AJAX_OPTION_JUMP" => "N",
    "AJAX_OPTION_STYLE" => "Y",
    "AJAX_OPTION_HISTORY" => "N",
    "SEF_FOLDER" => "/internet-magazin-trodat/",
    "SEF_URL_TEMPLATES" => Array(
      "section" => "#SECTION_CODE#/",
      "element" => "/internet-magazin-trodat/detail.php?ELEMENT_ID=#ELEMENT_ID#",
      "compare" => "compare.php?action=#ACTION_CODE#"
    ),
    "VARIABLE_ALIASES" => Array(
      "section" => Array(),
      "element" => Array(
        "ELEMENT_ID" => "ELEMENT_ID"
      ),
      "compare" => Array(
        "ACTION_CODE" => "action"
      ),
    )
  )
);?>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Express777, 2015-06-04
@Shshzik

Open the component template in a text editor and look for an array with the key "PREVIEW_TEXT" or "DETAIL_TEXT". For example, $arSection["PREVIEW_TEXT"].
If there is none, then the output of the text in the template is removed.

R
Roman Webs, 2015-06-03
@roman_vebs

This is a complex component. Do you want the description (as I understand it to be detailed?) to be displayed in the list of products? In the list of products, the description of the announcement is displayed by default, and the detailed one is displayed on the detailed page. To display a detailed description in the list of goods, you need to look at the code.
In general, you do not use a standard template, perhaps the output of any description is removed there, so it's hard to say something else.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question