SetTitle("Учебные пособия"); $GLOBALS['filter_new_book'] = array("IBLOCK_ID" => 2, "PROPERTY_lrn"=>"236", "PROPERTY"=>array("tp"=>28)); $sel_link = $APPLICATION->GetCurDir(); $prt_sect = ""; $yer_ls = $_REQUEST['yer_ls']; $lang = $_REQUEST['lang']; if ($_REQUEST['books']) $prt_sect = $_REQUEST['books']; if ($yer_ls) $GLOBALS['filter_new_book']["PROPERTY"]["yer_ls"]=$yer_ls; if ($lang) $GLOBALS['filter_new_book']["PROPERTY"]["lang"]=$lang; if (CModule::IncludeModule("iblock")) { $arOrder = Array("SORT"=>"ASC", "PROPERTY_PRIORITY"=>"ASC"); $arFilter = Array("IBLOCK_ID"=>"2"); $arOrder = Array("DEF"=>"ASC", "SORT"=>"ASC"); $db_yer_ls = CIBlockProperty::GetPropertyEnum("yer_ls",Array("VALUE"=>"DESC"),$arFilter); //года $db_lang = CIBlockProperty::GetPropertyEnum("lang",$arOrder,$arFilter); //языки } $db_books_list=$APPLICATION->IncludeComponent('bitrix:menu.sections', '', array( 'IS_SEF' => 'Y', 'SEF_BASE_URL' => '', //директория каталога у вас 'SECTION_PAGE_URL' => '#SECTION_ID#', 'DETAIL_PAGE_URL' => '#ELEMENT_ID#', 'IBLOCK_TYPE' => 'books', //название инфоблока 'IBLOCK_ID' => '2', //ID инфоблока 'DEPTH_LEVEL' => '2', 'CACHE_TYPE' => 'A', 'CACHE_TIME' => '3600' ), false ); ?>
Разделы:
Год:
Язык:

Учебные пособия

IncludeComponent("bitrix:news.list", "books-main", array( "IBLOCK_TYPE" => "books", "IBLOCK_ID" => "2", "NEWS_COUNT" => "24", "SORT_BY1" => "ACTIVE_FROM", "SORT_ORDER1" => "DESC", "SORT_BY2" => "SORT", "SORT_ORDER2" => "ASC", "FILTER_NAME" => "filter_new_book", "FIELD_CODE" => array( 0 => "", 1 => "", ), "PROPERTY_CODE" => array( 0 => "author", 1 => "price", 2 => "new", 3 => "best", 4 => "new", 5 => "publisher", 6 => "", ), "CHECK_DATES" => "Y", "DETAIL_URL" => "", "AJAX_MODE" => "N", "AJAX_OPTION_SHADOW" => "Y", "AJAX_OPTION_JUMP" => "N", "AJAX_OPTION_STYLE" => "Y", "AJAX_OPTION_HISTORY" => "N", "CACHE_TYPE" => "A", "CACHE_TIME" => "36000000", "CACHE_FILTER" => "N", "CACHE_GROUPS" => "Y", "PREVIEW_TRUNCATE_LEN" => "", "ACTIVE_DATE_FORMAT" => "d.m.Y", "SET_TITLE" => "Y", "SET_STATUS_404" => "N", "INCLUDE_IBLOCK_INTO_CHAIN" => "N", "ADD_SECTIONS_CHAIN" => "Y", "HIDE_LINK_WHEN_NO_DETAIL" => "N", "PARENT_SECTION" => $prt_sect, "PARENT_SECTION_CODE" => "", "DISPLAY_TOP_PAGER" => "N", "DISPLAY_BOTTOM_PAGER" => "Y", "PAGER_TITLE" => "Количество книг:", "PAGER_SHOW_ALWAYS" => "Y", "PAGER_TEMPLATE" => "", "PAGER_DESC_NUMBERING" => "N", "PAGER_DESC_NUMBERING_CACHE_TIME" => "36000", "PAGER_SHOW_ALL" => "N", "DISPLAY_DATE" => "Y", "DISPLAY_NAME" => "Y", "DISPLAY_PICTURE" => "Y", "DISPLAY_PREVIEW_TEXT" => "Y", "AJAX_OPTION_ADDITIONAL" => "" ), false );?>