Answer the question
In order to leave comments, you need to log in
How to disable the output of a certain category in the news.list bitrix component?
How can I disable the display of a certain category in the news.list component?
This code doesn't work((
<?$GLOBALS['arrFilterHomeList']=array('!SECTION_ID' => 15);?>
<?$APPLICATION->IncludeComponent(
"bitrix:news.list",
"list-news" ,
Array(
"ACTIVE_DATE_FORMAT" => "dmY",
"ADD_SECTIONS_CHAIN" => "N",
"AJAX_MODE" => "N",
"AJAX_OPTION_ADDITIONAL" => "",
"AJAX_OPTION_HISTORY" => "N",
"AJAX_OPTION_JUMP" => "N",
"AJAX_OPTION_STYLE" => "Y",
"CACHE_FILTER" =>
"COMPONENT_TEMPLATE" => "list-news",
"DETAIL_URL" => "/press-sluzhba/novosti/#SECTION_CODE_PATH#/#ELEMENT_CODE#",
"DISPLAY_BOTTOM_PAGER" => "Y",
"DISPLAY_DATE" => "Y" ,
"DISPLAY_NAME" => "Y",
"DISPLAY_PICTURE" => "N",
"DISPLAY_PREVIEW_TEXT" => "Y",
"DISPLAY_TOP_PAGER" => "N",
"FIELD_CODE" => array(0=>"", 1=>"",),
"FILTER_NAME" => "arrFilterHomeListNews",
"HIDE_LINK_WHEN_NO_DETAIL" => "N",
"IBLOCK_ID" => "3",
"IBLOCK_TYPE" => "information",
"INCLUDE_IBLOCK_INTO_CHAIN" => "N",
"INCLUDE_SUBSECTIONS" => "N",
"MESSAGE_404" => "",
"NEWS_COUNT" => "9",
"PAGER_BASE_LINK_ENABLE" => " N",
"PAGER_DESC_NUMBERING" => "N",
"PAGER_DESC_NUMBERING_CACHE_TIME" => "36000",
"PAGER_SHOW_ALL" => "N",
"PAGER_SHOW_ALWAYS" => "N",
"PAGER_TEMPLATE" => ".default",
"PAGER_TITLE" = > "News",
"PARENT_SECTION" => "",
"PARENT_SECTION_CODE" => "",
"PREVIEW_TRUNCATE_LEN" => "",
"PROPERTY_CODE" => array(0=>"",1=>"",),
"SET_BROWSER_TITLE" => "N",
"SET_LAST_MODIFIED" => "N",
"SET_META_DESCRIPTION" => "N",
"SET_META_KEYWORDS" => "N",
"SET_STATUS_404" => "N",
"SET_TITLE" => "N",
"SHOW_404" => "N",
"SORT_BY1" => " ACTIVE_FROM",
"SORT_BY2" => "SORT",
"SORT_ORDER1" => "DESC",
"SORT_ORDER2" => "ASC",
"STRICT_SECTION_CHECK" => "N"
)
);?>
Answer the question
In order to leave comments, you need to log in
In the infoblock settings, enable advanced rights management (access tab), and then set the access rights for the section as you need.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question