I
I
iberk2017-02-18 02:15:05
1C-Bitrix
iberk, 2017-02-18 02:15:05

How to remove the link for more details (read more) from a specific news item?

How can I remove the link in more detail from a particular news item? HIDE_LINK_WHEN_NO_DETAIL with the Y parameter does not help if I do not make a detailed description of the news - the link is still displayed and the link 404 error
and now something messed up in the code and detailed links do not open at all for any news


<?
$APPLICATION->SetTitle("Promotions");
?><?$APPLICATION->IncludeComponent("bitrix:news", "akcii", Array(
"COMPONENT_TEMPLATE" => "akcii",
"IBLOCK_TYPE" => "news",
"IBLOCK_ID" => "18",
" NEWS_COUNT" => "20",
"USE_SEARCH" => "N",
"USE_RSS" => "N",
"USE_RATING" => "N",
"USE_CATEGORIES" => "N",
"USE_REVIEW" => " N",
"USE_FILTER" => "N",
"SORT_BY1" => "ACTIVE_FROM",
"AJAX_OPTION_STYLE" => "Y",
"AJAX_OPTION_HISTORY" => "N",
"AJAX_OPTION_ADDITIONAL" => "",
"CACHE_TYPE" => "N",
"CACHE_TIME" => "36000000",
"CACHE_FILTER" => " N",
"CACHE_GROUPS" => "Y",
"SET_LAST_MODIFIED" => "N",
"SET_TITLE" => "Y",
"INCLUDE_IBLOCK_INTO_CHAIN" => "N",
"ADD_SECTIONS_CHAIN" => "Y",
"ADD_ELEMENT_CHAIN " => "Y",
"USE_PERMISSIONS" => "N",
" DISPLAY_DATE" => "Y",
"DISPLAY_PICTURE" => "Y",
"DISPLAY_PREVIEW_TEXT" => "Y",
"USE_SHARE" => "N",
"PREVIEW_TRUNCATE_LEN" => "",
"LIST_ACTIVE_DATE_FORMAT" => "dmY ",
"LIST_FIELD_CODE" => array(
0 => "",
1 => "",
),
"LIST_PROPERTY_CODE" => array(
"",
),
"HIDE_LINK_WHEN_NO_DETAIL" => "Y",
"DISPLAY_NAME" => "N" ,
"META_KEYWORDS" => "-",
"META_DESCRIPTION" => "-",
"BROWSER_TITLE" => "-",
"DETAIL_SET_CANONICAL_URL" => "N",
"DETAIL_ACTIVE_DATE_FORMAT" => "dmY",
"DETAIL_FIELD_CODE" = > array(
"PREVIEW_PICTURE"
),
"DETAIL_PROPERTY_CODE" => array(
"PROPERTY_IMAGES"
),
"DETAIL_DISPLAY_TOP_PAGER" => "N",
"DETAIL_DISPLAY_BOTTOM_PAGER" => "Y",
"DETAIL_PAGER_TITLE" => "Page",
"DETAIL_PAGER_TEMPLATE" => "",
"DETAIL_PAGER_SHOW_ALL" => "Y",
"PAGER_TEMPLATE" => "modern",
"DISPLAY_TOP_PAGER" => "N",
"DISPLAY_BOTTOM_PAGER" => " Y",
"PAGER_TITLE" => "News",
"PAGER_SHOW_ALWAYS" => "N",
"PAGER_DESC_NUMBERING" => "N",
"PAGER_DESC_NUMBERING_CACHE_TIME" => "36000",
"PAGER_SHOW_ALL" => "N",
"PAGER_BASE_LINK_ENABLE " => "N",
" SET_STATUS_404" => "N",
"SHOW_404" => "Y",
"MESSAGE_404" => "Promotion not found",
"TEMPLATE_THEME" => "blue",
"SEF_FOLDER" => "/catalog/akcii/",
"MEDIA_PROPERTY" => "",
"SLIDER_PROPERTY" => "",
"TAGS_CLOUD_ELEMENTS" => "150",
"PERIOD_NEW_TAGS" => "",
"DISPLAY_AS_RATING" => "rating",
"FONT_MAX" => "50",
"FONT_MIN" => "10 ",
"COLOR_NEW" => "3E74E6",
"COLOR_OLD" => "C0C0C0",
"TAGS_CLOUD_WIDTH" => "100%",
"SEF_URL_TEMPLATES" => array(
// "news" => "",
// " section" => "",
"detail" => "#ELEMENT_CODE#.html",
)
),
false
);?>

I've already broken my head (((is it some kind of problem with the CNC, but there were no edits, it all started after changing this file ... and the links are generated correctly, the site / akcii / bla-bla-bla.html - like specified in the IB settings
Help please, who can and knows

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikita, 2017-02-20
@Rema1ns

"SEF_FOLDER" => "/akcii/",	 
"SEF_URL_TEMPLATES" => array(
      "news" => "",
      "section" => "",
      "detail" => "#ELEMENT_CODE#.html",
    )

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question