Полезные ссылки для отличия. моё видео))
-
bitrix отличие агентов от cron
-
классная статья про WebSocket и Php+ авторизация facebook
Далее идет ссылка . Сделано на микрофеймворке silex
Подробнее -
git принудительная перезапись с репозитория
ПРИНУДИТЕЛЬНО выкладываем на боевой сервер 2 команды, игнорирует ВСЁ
Подробнее -
bitrix — события выгрузки из 1с (ссылки на статьи)
здесь ссылки на материал выгрузки из 1с
https://dev.1c-bitrix.ru/community/webdev/user/24164/blog/7651/
Подробнее -
bitrix push and pull — сборник ссылок на источники
-
Добавление таба в админку
-
bitrix smart.filter — выводим в корень комплексного компонента news
что и почему в bitrix smart.filter , читаем эту статью
http://ftask.ru/2019/01/20/bitrix-%D0%B2%D1%8B%D0%B2%D0%B5%D1%81%D1%82%D0%B8-%D0%B2-%D0%BA%D0%BE%D1%80%D0%B5%D0%BD%D1%8C-%D0%BA%D0%B0%D1%82%D0%B0%D0%BB%D0%BE%D0%B3%D0%B0-smart-filter/и смотрим видео
-
bitrix вывести в корень каталога smart.filter (умный фильтр)
первое, что надо сделать, перед тем как читать этот код, изучите этот урок, поиграйтесь с урлами в комплексном компоненте
https://dev.1c-bitrix.ru/learning/course/index.php?COURSE_ID=43&LESSON_ID=2749&LESSON_PATH=3913.4565.2749
Иначе суть не поймете.Полный файл выглядит вот так sections.php.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219<?if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) die();/** @var array $arParams *//** @var array $arResult *//** @global CMain $APPLICATION *//** @global CUser $USER *//** @global CDatabase $DB *//** @var CBitrixComponentTemplate $this *//** @var string $templateName *//** @var string $templateFile *//** @var string $templateFolder *//** @var string $componentPath *//** @var CBitrixComponent $component */$this->setFrameMode(true);$this->addExternalCss("/bitrix/css/main/bootstrap.css");$APPLICATION->IncludeComponent("bitrix:catalog.smart.filter","",array("IBLOCK_TYPE" => $arParams["IBLOCK_TYPE"],"IBLOCK_ID" => $arParams["IBLOCK_ID"],"SECTION_ID" => 0,"FILTER_NAME" => $arParams["FILTER_NAME"],"PRICE_CODE" => $arParams["~PRICE_CODE"],"CACHE_TYPE" => $arParams["CACHE_TYPE"],"CACHE_TIME" => $arParams["CACHE_TIME"],"CACHE_GROUPS" => $arParams["CACHE_GROUPS"],"SAVE_IN_SESSION" => "N","FILTER_VIEW_MODE" => $arParams["FILTER_VIEW_MODE"],"XML_EXPORT" => "N","SECTION_TITLE" => "NAME","SECTION_DESCRIPTION" => "DESCRIPTION",'HIDE_NOT_AVAILABLE' => $arParams["HIDE_NOT_AVAILABLE"],"TEMPLATE_THEME" => $arParams["TEMPLATE_THEME"],'CONVERT_CURRENCY' => $arParams['CONVERT_CURRENCY'],'CURRENCY_ID' => $arParams['CURRENCY_ID'],"SEF_MODE" => $arParams["SEF_MODE"],"PAGER_PARAMS_NAME" => $arParams["PAGER_PARAMS_NAME"],"INSTANT_RELOAD" => $arParams["INSTANT_RELOAD"],//ключевые места 1"SEF_RULE" => '/catalog/filter/#SMART_FILTER_PATH#/apply/',"SMART_FILTER_PATH" => $_REQUEST["SMART_FILTER_PATH"],'SHOW_ALL_WO_SECTION'=>'Y',),$component,array('HIDE_ICONS' => 'Y'));$intSectionID = $APPLICATION->IncludeComponent("bitrix:catalog.section","",array("IBLOCK_TYPE" => $arParams["IBLOCK_TYPE"],"IBLOCK_ID" => $arParams["IBLOCK_ID"],"ELEMENT_SORT_FIELD" => $arParams["ELEMENT_SORT_FIELD"],"ELEMENT_SORT_ORDER" => $arParams["ELEMENT_SORT_ORDER"],"ELEMENT_SORT_FIELD2" => $arParams["ELEMENT_SORT_FIELD2"],"ELEMENT_SORT_ORDER2" => $arParams["ELEMENT_SORT_ORDER2"],"PROPERTY_CODE" => (isset($arParams["LIST_PROPERTY_CODE"]) ? $arParams["LIST_PROPERTY_CODE"] : []),"PROPERTY_CODE_MOBILE" => $arParams["LIST_PROPERTY_CODE_MOBILE"],"META_KEYWORDS" => $arParams["LIST_META_KEYWORDS"],"META_DESCRIPTION" => $arParams["LIST_META_DESCRIPTION"],"BROWSER_TITLE" => $arParams["LIST_BROWSER_TITLE"],"SET_LAST_MODIFIED" => $arParams["SET_LAST_MODIFIED"],//изменение!!!"INCLUDE_SUBSECTIONS" => 'Y',"BASKET_URL" => $arParams["BASKET_URL"],"ACTION_VARIABLE" => $arParams["ACTION_VARIABLE"],"PRODUCT_ID_VARIABLE" => $arParams["PRODUCT_ID_VARIABLE"],"SECTION_ID_VARIABLE" => $arParams["SECTION_ID_VARIABLE"],"PRODUCT_QUANTITY_VARIABLE" => $arParams["PRODUCT_QUANTITY_VARIABLE"],"PRODUCT_PROPS_VARIABLE" => $arParams["PRODUCT_PROPS_VARIABLE"],"FILTER_NAME" => $arParams["FILTER_NAME"],"CACHE_TYPE" => $arParams["CACHE_TYPE"],"CACHE_TIME" => $arParams["CACHE_TIME"],"CACHE_FILTER" => $arParams["CACHE_FILTER"],"CACHE_GROUPS" => $arParams["CACHE_GROUPS"],"SET_TITLE" => $arParams["SET_TITLE"],"MESSAGE_404" => $arParams["~MESSAGE_404"],"SET_STATUS_404" => $arParams["SET_STATUS_404"],"SHOW_404" => $arParams["SHOW_404"],"FILE_404" => $arParams["FILE_404"],"DISPLAY_COMPARE" => $arParams["USE_COMPARE"],"PAGE_ELEMENT_COUNT" => $arParams["PAGE_ELEMENT_COUNT"],"LINE_ELEMENT_COUNT" => $arParams["LINE_ELEMENT_COUNT"],"PRICE_CODE" => $arParams["~PRICE_CODE"],"USE_PRICE_COUNT" => $arParams["USE_PRICE_COUNT"],"SHOW_PRICE_COUNT" => $arParams["SHOW_PRICE_COUNT"],"PRICE_VAT_INCLUDE" => $arParams["PRICE_VAT_INCLUDE"],"USE_PRODUCT_QUANTITY" => $arParams['USE_PRODUCT_QUANTITY'],"ADD_PROPERTIES_TO_BASKET" => (isset($arParams["ADD_PROPERTIES_TO_BASKET"]) ? $arParams["ADD_PROPERTIES_TO_BASKET"] : ''),"PARTIAL_PRODUCT_PROPERTIES" => (isset($arParams["PARTIAL_PRODUCT_PROPERTIES"]) ? $arParams["PARTIAL_PRODUCT_PROPERTIES"] : ''),"PRODUCT_PROPERTIES" => (isset($arParams["PRODUCT_PROPERTIES"]) ? $arParams["PRODUCT_PROPERTIES"] : []),"DISPLAY_TOP_PAGER" => $arParams["DISPLAY_TOP_PAGER"],"DISPLAY_BOTTOM_PAGER" => $arParams["DISPLAY_BOTTOM_PAGER"],"PAGER_TITLE" => $arParams["PAGER_TITLE"],"PAGER_SHOW_ALWAYS" => $arParams["PAGER_SHOW_ALWAYS"],"PAGER_TEMPLATE" => $arParams["PAGER_TEMPLATE"],"PAGER_DESC_NUMBERING" => $arParams["PAGER_DESC_NUMBERING"],"PAGER_DESC_NUMBERING_CACHE_TIME" => $arParams["PAGER_DESC_NUMBERING_CACHE_TIME"],"PAGER_SHOW_ALL" => $arParams["PAGER_SHOW_ALL"],"PAGER_BASE_LINK_ENABLE" => $arParams["PAGER_BASE_LINK_ENABLE"],"PAGER_BASE_LINK" => $arParams["PAGER_BASE_LINK"],"PAGER_PARAMS_NAME" => $arParams["PAGER_PARAMS_NAME"],"LAZY_LOAD" => $arParams["LAZY_LOAD"],"MESS_BTN_LAZY_LOAD" => $arParams["~MESS_BTN_LAZY_LOAD"],"LOAD_ON_SCROLL" => $arParams["LOAD_ON_SCROLL"],"OFFERS_CART_PROPERTIES" => (isset($arParams["OFFERS_CART_PROPERTIES"]) ? $arParams["OFFERS_CART_PROPERTIES"] : []),"OFFERS_FIELD_CODE" => $arParams["LIST_OFFERS_FIELD_CODE"],"OFFERS_PROPERTY_CODE" => (isset($arParams["LIST_OFFERS_PROPERTY_CODE"]) ? $arParams["LIST_OFFERS_PROPERTY_CODE"] : []),"OFFERS_SORT_FIELD" => $arParams["OFFERS_SORT_FIELD"],"OFFERS_SORT_ORDER" => $arParams["OFFERS_SORT_ORDER"],"OFFERS_SORT_FIELD2" => $arParams["OFFERS_SORT_FIELD2"],"OFFERS_SORT_ORDER2" => $arParams["OFFERS_SORT_ORDER2"],"OFFERS_LIMIT" => (isset($arParams["LIST_OFFERS_LIMIT"]) ? $arParams["LIST_OFFERS_LIMIT"] : 0),"SECTION_CODE" => $arResult["VARIABLES"]["SECTION_CODE"],"SECTION_URL" => $arResult["FOLDER"].$arResult["URL_TEMPLATES"]["section"],"DETAIL_URL" => $arResult["FOLDER"].$arResult["URL_TEMPLATES"]["element"],"USE_MAIN_ELEMENT_SECTION" => $arParams["USE_MAIN_ELEMENT_SECTION"],'CONVERT_CURRENCY' => $arParams['CONVERT_CURRENCY'],'CURRENCY_ID' => $arParams['CURRENCY_ID'],'HIDE_NOT_AVAILABLE' => $arParams["HIDE_NOT_AVAILABLE"],'HIDE_NOT_AVAILABLE_OFFERS' => $arParams["HIDE_NOT_AVAILABLE_OFFERS"],'LABEL_PROP' => $arParams['LABEL_PROP'],'LABEL_PROP_MOBILE' => $arParams['LABEL_PROP_MOBILE'],'LABEL_PROP_POSITION' => $arParams['LABEL_PROP_POSITION'],'ADD_PICT_PROP' => $arParams['ADD_PICT_PROP'],'PRODUCT_DISPLAY_MODE' => $arParams['PRODUCT_DISPLAY_MODE'],'PRODUCT_BLOCKS_ORDER' => $arParams['LIST_PRODUCT_BLOCKS_ORDER'],'PRODUCT_ROW_VARIANTS' => $arParams['LIST_PRODUCT_ROW_VARIANTS'],'ENLARGE_PRODUCT' => $arParams['LIST_ENLARGE_PRODUCT'],'ENLARGE_PROP' => isset($arParams['LIST_ENLARGE_PROP']) ? $arParams['LIST_ENLARGE_PROP'] : '','SHOW_SLIDER' => $arParams['LIST_SHOW_SLIDER'],'SLIDER_INTERVAL' => isset($arParams['LIST_SLIDER_INTERVAL']) ? $arParams['LIST_SLIDER_INTERVAL'] : '','SLIDER_PROGRESS' => isset($arParams['LIST_SLIDER_PROGRESS']) ? $arParams['LIST_SLIDER_PROGRESS'] : '','OFFER_ADD_PICT_PROP' => $arParams['OFFER_ADD_PICT_PROP'],'OFFER_TREE_PROPS' => (isset($arParams['OFFER_TREE_PROPS']) ? $arParams['OFFER_TREE_PROPS'] : []),'PRODUCT_SUBSCRIPTION' => $arParams['PRODUCT_SUBSCRIPTION'],'SHOW_DISCOUNT_PERCENT' => $arParams['SHOW_DISCOUNT_PERCENT'],'DISCOUNT_PERCENT_POSITION' => $arParams['DISCOUNT_PERCENT_POSITION'],'SHOW_OLD_PRICE' => $arParams['SHOW_OLD_PRICE'],'SHOW_MAX_QUANTITY' => $arParams['SHOW_MAX_QUANTITY'],'MESS_SHOW_MAX_QUANTITY' => (isset($arParams['~MESS_SHOW_MAX_QUANTITY']) ? $arParams['~MESS_SHOW_MAX_QUANTITY'] : ''),'RELATIVE_QUANTITY_FACTOR' => (isset($arParams['RELATIVE_QUANTITY_FACTOR']) ? $arParams['RELATIVE_QUANTITY_FACTOR'] : ''),'MESS_RELATIVE_QUANTITY_MANY' => (isset($arParams['~MESS_RELATIVE_QUANTITY_MANY']) ? $arParams['~MESS_RELATIVE_QUANTITY_MANY'] : ''),'MESS_RELATIVE_QUANTITY_FEW' => (isset($arParams['~MESS_RELATIVE_QUANTITY_FEW']) ? $arParams['~MESS_RELATIVE_QUANTITY_FEW'] : ''),'MESS_BTN_BUY' => (isset($arParams['~MESS_BTN_BUY']) ? $arParams['~MESS_BTN_BUY'] : ''),'MESS_BTN_ADD_TO_BASKET' => (isset($arParams['~MESS_BTN_ADD_TO_BASKET']) ? $arParams['~MESS_BTN_ADD_TO_BASKET'] : ''),'MESS_BTN_SUBSCRIBE' => (isset($arParams['~MESS_BTN_SUBSCRIBE']) ? $arParams['~MESS_BTN_SUBSCRIBE'] : ''),'MESS_BTN_DETAIL' => (isset($arParams['~MESS_BTN_DETAIL']) ? $arParams['~MESS_BTN_DETAIL'] : ''),'MESS_NOT_AVAILABLE' => (isset($arParams['~MESS_NOT_AVAILABLE']) ? $arParams['~MESS_NOT_AVAILABLE'] : ''),'MESS_BTN_COMPARE' => (isset($arParams['~MESS_BTN_COMPARE']) ? $arParams['~MESS_BTN_COMPARE'] : ''),'USE_ENHANCED_ECOMMERCE' => (isset($arParams['USE_ENHANCED_ECOMMERCE']) ? $arParams['USE_ENHANCED_ECOMMERCE'] : ''),'DATA_LAYER_NAME' => (isset($arParams['DATA_LAYER_NAME']) ? $arParams['DATA_LAYER_NAME'] : ''),'BRAND_PROPERTY' => (isset($arParams['BRAND_PROPERTY']) ? $arParams['BRAND_PROPERTY'] : ''),'TEMPLATE_THEME' => (isset($arParams['TEMPLATE_THEME']) ? $arParams['TEMPLATE_THEME'] : ''),"ADD_SECTIONS_CHAIN" => "N",'ADD_TO_BASKET_ACTION' => $basketAction,'SHOW_CLOSE_POPUP' => isset($arParams['COMMON_SHOW_CLOSE_POPUP']) ? $arParams['COMMON_SHOW_CLOSE_POPUP'] : '','COMPARE_PATH' => $arResult['FOLDER'].$arResult['URL_TEMPLATES']['compare'],'COMPARE_NAME' => $arParams['COMPARE_NAME'],'USE_COMPARE_LIST' => 'Y','BACKGROUND_IMAGE' => (isset($arParams['SECTION_BACKGROUND_IMAGE']) ? $arParams['SECTION_BACKGROUND_IMAGE'] : ''),'COMPATIBLE_MODE' => (isset($arParams['COMPATIBLE_MODE']) ? $arParams['COMPATIBLE_MODE'] : ''),'DISABLE_INIT_JS_IN_COMPONENT' => (isset($arParams['DISABLE_INIT_JS_IN_COMPONENT']) ? $arParams['DISABLE_INIT_JS_IN_COMPONENT'] : ''),// секцию не выставляю"SECTION_ID" => 0, // пустота"SHOW_ALL_WO_SECTION" => "Y", //Показывать все элементы, если не указан раздел),$component);//обычно секции выводятся, например слева!!// если не нужны , удалять , смело!!!$APPLICATION->IncludeComponent("bitrix:catalog.section.list","",array("IBLOCK_TYPE" => $arParams["IBLOCK_TYPE"],"IBLOCK_ID" => $arParams["IBLOCK_ID"],"CACHE_TYPE" => $arParams["CACHE_TYPE"],"CACHE_TIME" => $arParams["CACHE_TIME"],"CACHE_GROUPS" => $arParams["CACHE_GROUPS"],"COUNT_ELEMENTS" => $arParams["SECTION_COUNT_ELEMENTS"],"TOP_DEPTH" => $arParams["SECTION_TOP_DEPTH"],"SECTION_URL" => $arResult["FOLDER"].$arResult["URL_TEMPLATES"]["section"],"VIEW_MODE" => $arParams["SECTIONS_VIEW_MODE"],"SHOW_PARENT_NAME" => $arParams["SECTIONS_SHOW_PARENT_NAME"],"HIDE_SECTION_NAME" => (isset($arParams["SECTIONS_HIDE_SECTION_NAME"]) ? $arParams["SECTIONS_HIDE_SECTION_NAME"] : "N"),"ADD_SECTIONS_CHAIN" => (isset($arParams["ADD_SECTIONS_CHAIN"]) ? $arParams["ADD_SECTIONS_CHAIN"] : '')),$component,($arParams["SHOW_TOP_ELEMENTS"] !== "N" ? array("HIDE_ICONS" => "Y") : array()));?>И второе , что нам нужно это urlrewrite, там надо задать 2 правила.
Подробнее -
bitrix getList и smart.filter- запуск по хардкору
выводим в корень сплошной список. Без использования компонентов списков. Только smart.filter
Все действо происходит в каталоге testurl/index.php. Испытывал urlrwrite
Подробнее -
схема хранения друзей в php (в базе данных)
Хорошие уроки
https://ru.stackoverflow.com/questions/147885/%D0%94%D0%BE%D0%B1%D0%B0%D0%B2%D0%B8%D1%82%D1%8C-%D0%B2-%D0%B4%D1%80%D1%83%D0%B7%D1%8C%D1%8F
https://ruseller.com/lessons.php?rub=37&id=1998
Подробнее
Цены
1500 р/чБолее подробно тут: https://ftask.ru/цены