Bitrix 1C. Управление сайтом

Архив новостей

Михаил Пчеляков 2014-09-01 15:05:40
Здравствуйте. Есть компонента http://marketplace.1c-bitrix.ru/solutions/imyie.newsarchive/
Компонент архива новостей. Он генерирует ссылку http://xxx.ru/rus/news/?F_VARIANT=DATE_ACTIVE_FROM&F;_YEAR=2014&F;_MONTH=08.
На странице news - компонент news.list. Как мне их связать?
Первый компонент вызов -
<?$APPLICATION->IncludeComponent(
   "imyie:news.archive",
   "",
   Array(
      "NA_PARAM_NAME" => "Архив",
      "IBLOCK_TYPE" => "news",
      "IBLOCK_ID" => "3",
      "KNOW_CNT_ELEMENTS" => "Y",
      "ONLY_ACTIVE_ELEMENTS" => "Y",
      "CNT_MONTH" => "12",
      "FILTER_LINK" => "/rus/news/",
      "CACHE_TYPE" => "A",
      "CACHE_TIME" => "3600"
   )
);?>  
Второй -
 <?$APPLICATION->IncludeComponent(
   "bitrix:news.list",
   "news_mes_list",
   Array(
      "IBLOCK_TYPE" => "news",
      "IBLOCK_ID" => "3",
      "NEWS_COUNT" => "10",
      "SORT_BY1" => "SORT",
      "SORT_ORDER1" => "ASC",
      "SORT_BY2" => "ACTIVE_FROM",
      "SORT_ORDER2" => "DESC",
      "FILTER_NAME" => "",
      "FIELD_CODE" => array(0=>"",1=>"",),
      "PROPERTY_CODE" => array(0=>"video",1=>"",),
      "CHECK_DATES" => "Y",
      "DETAIL_URL" => "detail/?ID=#ELEMENT_ID#",
      "AJAX_MODE" => "N",
      "AJAX_OPTION_JUMP" => "N",
      "AJAX_OPTION_STYLE" => "Y",
      "AJAX_OPTION_HISTORY" => "N",
      "CACHE_TYPE" => "N",
      "CACHE_TIME" => "36000000",
      "CACHE_FILTER" => "N",
      "CACHE_GROUPS" => "Y",
      "PREVIEW_TRUNCATE_LEN" => "",
      "ACTIVE_DATE_FORMAT" => "j F Y",
      "SET_STATUS_404" => "N",
      "SET_TITLE" => "N",
      "INCLUDE_IBLOCK_INTO_CHAIN" => "N",
      "ADD_SECTIONS_CHAIN" => "N",
      "HIDE_LINK_WHEN_NO_DETAIL" => "N",
      "PARENT_SECTION" => "",
      "PARENT_SECTION_CODE" => "",
      "INCLUDE_SUBSECTIONS" => "N",
      "PAGER_TEMPLATE" => ".default",
      "DISPLAY_TOP_PAGER" => "Y",
      "DISPLAY_BOTTOM_PAGER" => "Y",
      "PAGER_TITLE" => "Новости",
      "PAGER_SHOW_ALWAYS" => "N",
      "PAGER_DESC_NUMBERING" => "N",
      "PAGER_DESC_NUMBERING_CACHE_TIME" => "36000",
      "PAGER_SHOW_ALL" => "Y",
      "DISPLAY_DATE" => "Y",
      "DISPLAY_NAME" => "Y",
      "DISPLAY_PICTURE" => "Y",
      "DISPLAY_PREVIEW_TEXT" => "Y",
      "AJAX_OPTION_ADDITIONAL" => ""
   )
);?> 
 
Показать обсуждение