Акции и блог берутся из инфоблоков, которые у Вас уже есть при новой установке решения по пути:
Администрирование – Контент – Информация – Блог
Администрирование – Контент – Информация - Акции
Инфоблоки не появляются если Вы обновили решение до новой версии. Поэтому ниже Вы можете скачать инфоблоки акций и блога в xml (кодировка cp1251) и импортировать их себе.
Или обратиться в поддержку support@dw24.su за помощью.
Размеры картинки для анонса и детальной картинки произвольные и ресайзятся автоматически, только требуют соблюдения пропорций и отступов.
Фоновая картинка обрезается автоматически, но может иметь разные размеры в зависимости от выбранного типа меню, для верхнего меню это 1920х478, для левого меню 1500х478, но если Вы для левого меню загрузите картинку 1920 шириной, ничего плохого не будет, она автоматически подстроится под заданные размеры.
На странице списка используется описание для анонса и ограничивается автоматически 3мя строчками, т.е. Вы можете загружать больше текста, он обрежется.
На детальной странице также для баннера используется описание для анонса и автоматически обрезается, если Вы написали слишком много.
В детальном описании теперь можно использовать различные стили оформления текста, которые можно посмотреть у себя (если вы только установили решение), на странице «возможности» (*ваш_сайт*/vozmozhnosti/) или на демо-сайте https://dw-deluxe.ru/vozmozhnosti/ , пример:
Также данные стили можно использовать на всех произвольных страницах сайта, что поможет создать красивые посадочные страницы и грамотно и красиво преподнести текст.
Можно привязывать неограниченное количество товаров к блогу и акциям, тем самым создавая посадочные страницы, заполняется это через произвольное свойство инфоблока типа привязка к элементам «Товары по акции» (PRODUCTS_REFERENCE) , т.е. Вам просто в редактировании элемента(статьи, акции) нужно выбрать товары которые Вы хотите привязать.
В случае привязки товара к акции, в карточке этого товара появится соответствующее обозначение (в настрйоках компонента должен быть выбран инфоблок с акциями)
По умолчанию к акциям, записям блога и новостям выключены комментарии. Если Вы их включаете, то проверяйте периодически записи на наличие нежелательного контента.
Комментарии включаются в режиме правки
Далее в параметрах компонента нужно установить/снять галочку «Выводить комментарии»
С полноценным баннером
С картинкой
Без картинки
Система детальной страницы аналогична для новостей, блога и акций.
Код вставляется либо через редактирование раздела блога в режиме php через визуальную часть сайта, либо через систему администрирования - файлы и папки - blog (или своя папка блога) - index.php - редактировать как php
После сохранения необходимо выбрать инфоблок для вывода через настройки компонента (в режиме правки на страницу блога)
<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");<br/>$APPLICATION->SetTitle("Блог");?><?$APPLICATION->IncludeComponent(<br/> "bitrix:news", <br/> "blog", <br/> array(<br/> "ADD_ELEMENT_CHAIN" => "Y",<br/> "ADD_SECTIONS_CHAIN" => "N",<br/> "AJAX_MODE" => "N",<br/> "AJAX_OPTION_ADDITIONAL" => "",<br/> "AJAX_OPTION_HISTORY" => "N",<br/> "AJAX_OPTION_JUMP" => "N",<br/> "AJAX_OPTION_STYLE" => "Y",<br/> "BROWSER_TITLE" => "-",<br/> "CACHE_FILTER" => "N",<br/> "CACHE_GROUPS" => "Y",<br/> "CACHE_TIME" => "36000000",<br/> "CACHE_TYPE" => "A",<br/> "CHECK_DATES" => "Y",<br/> "DETAIL_ACTIVE_DATE_FORMAT" => "d.M.Y",<br/> "DETAIL_DISPLAY_BOTTOM_PAGER" => "Y",<br/> "DETAIL_DISPLAY_TOP_PAGER" => "N",<br/> "DETAIL_FIELD_CODE" => array(<br/> 0 => "ID",<br/> 1 => "CODE",<br/> 2 => "XML_ID",<br/> 3 => "NAME",<br/> 4 => "TAGS",<br/> 5 => "SORT",<br/> 6 => "PREVIEW_TEXT",<br/> 7 => "PREVIEW_PICTURE",<br/> 8 => "DETAIL_TEXT",<br/> 9 => "DETAIL_PICTURE",<br/> 10 => "DATE_ACTIVE_FROM",<br/> 11 => "ACTIVE_FROM",<br/> 12 => "DATE_ACTIVE_TO",<br/> 13 => "ACTIVE_TO",<br/> 14 => "SHOW_COUNTER",<br/> 15 => "SHOW_COUNTER_START",<br/> 16 => "IBLOCK_TYPE_ID",<br/> 17 => "IBLOCK_ID",<br/> 18 => "IBLOCK_CODE",<br/> 19 => "IBLOCK_NAME",<br/> 20 => "IBLOCK_EXTERNAL_ID",<br/> 21 => "DATE_CREATE",<br/> 22 => "CREATED_BY",<br/> 23 => "CREATED_USER_NAME",<br/> 24 => "TIMESTAMP_X",<br/> 25 => "MODIFIED_BY",<br/> 26 => "USER_NAME",<br/> 27 => "",<br/> ),<br/> "DETAIL_PAGER_SHOW_ALL" => "Y",<br/> "DETAIL_PAGER_TEMPLATE" => "",<br/> "DETAIL_PAGER_TITLE" => "Страница",<br/> "DETAIL_PROPERTY_CODE" => array(<br/> 0 => "",<br/> 1 => "",<br/> ),<br/> "DETAIL_SET_CANONICAL_URL" => "N",<br/> "DISPLAY_BOTTOM_PAGER" => "Y",<br/> "DISPLAY_NAME" => "Y",<br/> "DISPLAY_TOP_PAGER" => "N",<br/> "HIDE_LINK_WHEN_NO_DETAIL" => "N",<br/> "INCLUDE_IBLOCK_INTO_CHAIN" => "N",<br/> "LIST_ACTIVE_DATE_FORMAT" => "d.M.Y",<br/> "LIST_FIELD_CODE" => array(<br/> 0 => "ID",<br/> 1 => "CODE",<br/> 2 => "XML_ID",<br/> 3 => "NAME",<br/> 4 => "TAGS",<br/> 5 => "SORT",<br/> 6 => "PREVIEW_TEXT",<br/> 7 => "PREVIEW_PICTURE",<br/> 8 => "DETAIL_TEXT",<br/> 9 => "DETAIL_PICTURE",<br/> 10 => "DATE_ACTIVE_FROM",<br/> 11 => "ACTIVE_FROM",<br/> 12 => "DATE_ACTIVE_TO",<br/> 13 => "ACTIVE_TO",<br/> 14 => "SHOW_COUNTER",<br/> 15 => "SHOW_COUNTER_START",<br/> 16 => "IBLOCK_TYPE_ID",<br/> 17 => "IBLOCK_ID",<br/> 18 => "IBLOCK_CODE",<br/> 19 => "IBLOCK_NAME",<br/> 20 => "IBLOCK_EXTERNAL_ID",<br/> 21 => "DATE_CREATE",<br/> 22 => "CREATED_BY",<br/> 23 => "CREATED_USER_NAME",<br/> 24 => "TIMESTAMP_X",<br/> 25 => "MODIFIED_BY",<br/> 26 => "USER_NAME",<br/> 27 => "",<br/> ),<br/> "LIST_PROPERTY_CODE" => array(<br/> 0 => "",<br/> 1 => "",<br/> ),<br/> "MESSAGE_404" => "",<br/> "META_DESCRIPTION" => "-",<br/> "META_KEYWORDS" => "-",<br/> "NEWS_COUNT" => "15",<br/> "PAGER_BASE_LINK_ENABLE" => "N",<br/> "PAGER_DESC_NUMBERING" => "N",<br/> "PAGER_DESC_NUMBERING_CACHE_TIME" => "3600000",<br/> "PAGER_SHOW_ALL" => "N",<br/> "PAGER_SHOW_ALWAYS" => "N",<br/> "PAGER_TEMPLATE" => "round",<br/> "PAGER_TITLE" => "Блог",<br/> "PREVIEW_TRUNCATE_LEN" => "",<br/> "SEF_FOLDER" => "/blog/",<br/> "SEF_MODE" => "Y",<br/> "SET_LAST_MODIFIED" => "Y",<br/> "SET_STATUS_404" => "N",<br/> "SET_TITLE" => "Y",<br/> "SHOW_404" => "N",<br/> "SORT_BY1" => "ID",<br/> "SORT_BY2" => "ID",<br/> "SORT_ORDER1" => "ASC",<br/> "SORT_ORDER2" => "ASC",<br/> "STRICT_SECTION_CHECK" => "N",<br/> "USE_CATEGORIES" => "N",<br/> "USE_FILTER" => "N",<br/> "USE_PERMISSIONS" => "N",<br/> "USE_RATING" => "N",<br/> "USE_REVIEW" => "N",<br/> "USE_RSS" => "N",<br/> "USE_SEARCH" => "N",<br/> "COMPONENT_TEMPLATE" => "blog",<br/> "HIDE_NOT_AVAILABLE" => "N",<br/> "PRODUCT_IBLOCK_TYPE" => "catalog",<br/> "PRODUCT_IBLOCK_ID" => "17",<br/> "PRODUCT_FILTER_NAME" => "arrFilter",<br/> "PRODUCT_PROPERTY_CODE" => array(<br/> 0 => "OFFERS",<br/> 1 => "ATT_BRAND",<br/> 2 => "PRODUCT_DAY",<br/> 3 => "COLOR",<br/> 4 => "TIMER_START_DATE",<br/> 5 => "TIMER_DATE",<br/> 6 => "TIMER_LOOP",<br/> 7 => "ZOOM2",<br/> 8 => "BATTERY_LIFE",<br/> 9 => "SWITCH",<br/> 10 => "GRAF_PROC",<br/> 11 => "LENGTH_OF_CORD",<br/> 12 => "DISPLAY",<br/> 13 => "LOADING_LAUNDRY",<br/> 14 => "FULL_HD_VIDEO_RECORD",<br/> 15 => "INTERFACE",<br/> 16 => "COMPRESSORS",<br/> 17 => "Number_of_Outlets",<br/> 18 => "MAX_RESOLUTION_VIDEO",<br/> 19 => "MAX_BUS_FREQUENCY",<br/> 20 => "MAX_RESOLUTION",<br/> 21 => "FREEZER",<br/> 22 => "POWER_SUB",<br/> 23 => "POWER",<br/> 24 => "HARD_DRIVE_SPACE",<br/> 25 => "MEMORY",<br/> 26 => "OS",<br/> 27 => "ZOOM",<br/> 28 => "PAPER_FEED",<br/> 29 => "SUPPORTED_STANDARTS",<br/> 30 => "VIDEO_FORMAT",<br/> 31 => "SUPPORT_2SIM",<br/> 32 => "MP3",<br/> 33 => "ETHERNET_PORTS",<br/> 34 => "MATRIX",<br/> 35 => "CAMERA",<br/> 36 => "PHOTOSENSITIVITY",<br/> 37 => "DEFROST",<br/> 38 => "SPEED_WIFI",<br/> 39 => "SPIN_SPEED",<br/> 40 => "PRINT_SPEED",<br/> 41 => "SOCKET",<br/> 42 => "IMAGE_STABILIZER",<br/> 43 => "GSM",<br/> 44 => "SIM",<br/> 45 => "TYPE",<br/> 46 => "MEMORY_CARD",<br/> 47 => "TYPE_BODY",<br/> 48 => "TYPE_MOUSE",<br/> 49 => "TYPE_PRINT",<br/> 50 => "CONNECTION",<br/> 51 => "TYPE_OF_CONTROL",<br/> 52 => "TYPE_DISPLAY",<br/> 53 => "TYPE2",<br/> 54 => "REFRESH_RATE",<br/> 55 => "RANGE",<br/> 56 => "AMOUNT_MEMORY",<br/> 57 => "MEMORY_CAPACITY",<br/> 58 => "VIDEO_BRAND",<br/> 59 => "DIAGONAL",<br/> 60 => "RESOLUTION",<br/> 61 => "TOUCH",<br/> 62 => "CORES",<br/> 63 => "LINE_PROC",<br/> 64 => "PROCESSOR",<br/> 65 => "CLOCK_SPEED",<br/> 66 => "TYPE_PROCESSOR",<br/> 67 => "PROCESSOR_SPEED",<br/> 68 => "HARD_DRIVE",<br/> 69 => "HARD_DRIVE_TYPE",<br/> 70 => "Number_of_memory_slots",<br/> 71 => "MAXIMUM_MEMORY_FREQUENCY",<br/> 72 => "TYPE_MEMORY",<br/> 73 => "BLUETOOTH",<br/> 74 => "FM",<br/> 75 => "GPS",<br/> 76 => "HDMI",<br/> 77 => "SMART_TV",<br/> 78 => "USB",<br/> 79 => "WIFI",<br/> 80 => "FLASH",<br/> 81 => "ROTARY_DISPLAY",<br/> 82 => "SUPPORT_3D",<br/> 83 => "SUPPORT_3G",<br/> 84 => "WITH_COOLER",<br/> 85 => "FINGERPRINT",<br/> 86 => "VOZRAST",<br/> 87 => "ENERGOPOTREB",<br/> 88 => "OBOROTY",<br/> 89 => "MINI_BAR",<br/> 90 => "SIZES_PRODUCT",<br/> 91 => "DISPLAY_TYPE",<br/> 92 => "TIP_ELEMENTOV_PITANIA",<br/> 93 => "BELKI",<br/> 94 => "ZHIRY",<br/> 95 => "CALORIES",<br/> 96 => "COLLECTION",<br/> 97 => "UGLEVODY",<br/> 98 => "TOTAL_OUTPUT_POWER",<br/> 99 => "VID_ZASTECHKI",<br/> 100 => "VID_SUMKI",<br/> 101 => "PROFILE",<br/> 102 => "VYSOTA_RUCHEK",<br/> 103 => "GAS_CONTROL",<br/> 104 => "WARRANTY",<br/> 105 => "GRILL",<br/> 106 => "MORE_PROPERTIES",<br/> 107 => "GENRE",<br/> 108 => "OTSEKOV",<br/> 109 => "CONVECTION",<br/> 110 => "MATERIAL",<br/> 111 => "INTAKE_POWER",<br/> 112 => "NAZNAZHENIE",<br/> 113 => "BULK",<br/> 114 => "PODKLADKA",<br/> 115 => "SURFACE_COATING",<br/> 116 => "brand_tyres",<br/> 117 => "SEASON",<br/> 118 => "SEASONOST",<br/> 119 => "DUST_COLLECTION",<br/> 120 => "REF",<br/> 121 => "COUNTRY_BRAND",<br/> 122 => "DRYING",<br/> 123 => "REMOVABLE_TOP_COVER",<br/> 124 => "TEST_TEST",<br/> 125 => "CONTROL",<br/> 126 => "FINE_FILTER",<br/> 127 => "FORM_FAKTOR",<br/> 128 => "SKU_COLOR",<br/> 129 => "TESTING",<br/> 130 => "CML2_ARTICLE",<br/> 131 => "DELIVERY",<br/> 132 => "PICKUP",<br/> 133 => "USER_ID",<br/> 134 => "BLOG_POST_ID",<br/> 135 => "VIDEO",<br/> 136 => "BLOG_COMMENTS_CNT",<br/> 137 => "VOTE_COUNT",<br/> 138 => "SHOW_MENU",<br/> 139 => "SIMILAR_PRODUCT",<br/> 140 => "RATING",<br/> 141 => "RELATED_PRODUCT",<br/> 142 => "VOTE_SUM",<br/> 143 => "MAXIMUM_PRICE",<br/> 144 => "MINIMUM_PRICE",<br/> 145 => "",<br/> ),<br/> "PRODUCT_PRICE_CODE" => array(<br/> 0 => "BASE",<br/> 1 => "OPT_1",<br/> 2 => "OPT_2",<br/> 3 => "OPT1",<br/> ),<br/> "HIDE_MEASURES" => "N",<br/> "PRODUCT_CONVERT_CURRENCY" => "Y",<br/> "PRODUCT_CURRENCY_ID" => "RUB",<br/> "SHOW_BLOG_COMMENTS" => "Y",<br/> "SEF_URL_TEMPLATES" => array(<br/> "news" => "",<br/> "section" => "",<br/> "detail" => "#ELEMENT_CODE#/",<br/> )<br/> ),<br/> false<br/>);?><?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");?>
Код вставляется либо через редактирование раздела блога в режиме php через визуальную часть сайта, либо через систему администрирования - файлы и папки - stock (или своя папка акций) - index.php - редактировать как php
После сохранения необходимо выбрать инфоблок для вывода через настройки компонента (в режиме правки на страницу акций)
<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");<br/>$APPLICATION->SetTitle("Акции");?><br/><?$APPLICATION->IncludeComponent(<br/> "bitrix:news", <br/> "sales", <br/> array(<br/> "ADD_ELEMENT_CHAIN" => "Y",<br/> "ADD_SECTIONS_CHAIN" => "Y",<br/> "AJAX_MODE" => "N",<br/> "AJAX_OPTION_ADDITIONAL" => "",<br/> "AJAX_OPTION_HISTORY" => "N",<br/> "AJAX_OPTION_JUMP" => "N",<br/> "AJAX_OPTION_STYLE" => "Y",<br/> "BROWSER_TITLE" => "-",<br/> "CACHE_FILTER" => "N",<br/> "CACHE_GROUPS" => "Y",<br/> "CACHE_TIME" => "36000000",<br/> "CACHE_TYPE" => "A",<br/> "CHECK_DATES" => "Y",<br/> "DETAIL_ACTIVE_DATE_FORMAT" => "d.m.Y",<br/> "DETAIL_DISPLAY_BOTTOM_PAGER" => "Y",<br/> "DETAIL_DISPLAY_TOP_PAGER" => "N",<br/> "DETAIL_FIELD_CODE" => array(<br/> 0 => "ID",<br/> 1 => "CODE",<br/> 2 => "XML_ID",<br/> 3 => "NAME",<br/> 4 => "TAGS",<br/> 5 => "SORT",<br/> 6 => "PREVIEW_TEXT",<br/> 7 => "PREVIEW_PICTURE",<br/> 8 => "DETAIL_TEXT",<br/> 9 => "DETAIL_PICTURE",<br/> 10 => "DATE_ACTIVE_FROM",<br/> 11 => "ACTIVE_FROM",<br/> 12 => "DATE_ACTIVE_TO",<br/> 13 => "ACTIVE_TO",<br/> 14 => "SHOW_COUNTER",<br/> 15 => "SHOW_COUNTER_START",<br/> 16 => "IBLOCK_TYPE_ID",<br/> 17 => "IBLOCK_ID",<br/> 18 => "IBLOCK_CODE",<br/> 19 => "IBLOCK_NAME",<br/> 20 => "IBLOCK_EXTERNAL_ID",<br/> 21 => "DATE_CREATE",<br/> 22 => "CREATED_BY",<br/> 23 => "CREATED_USER_NAME",<br/> 24 => "TIMESTAMP_X",<br/> 25 => "MODIFIED_BY",<br/> 26 => "USER_NAME",<br/> 27 => "",<br/> ),<br/> "DETAIL_PAGER_SHOW_ALL" => "Y",<br/> "DETAIL_PAGER_TEMPLATE" => "",<br/> "DETAIL_PAGER_TITLE" => "Страница",<br/> "DETAIL_PROPERTY_CODE" => array(<br/> 0 => "BLOG_POST_ID",<br/> 1 => "STOCK_DATE",<br/> 2 => "BLOG_COMMENTS_CNT",<br/> 3 => "PRODUCTS_REFERENCE",<br/> 4 => "",<br/> ),<br/> "DETAIL_SET_CANONICAL_URL" => "N",<br/> "DISPLAY_BOTTOM_PAGER" => "Y",<br/> "DISPLAY_NAME" => "Y",<br/> "DISPLAY_TOP_PAGER" => "N",<br/> "HIDE_LINK_WHEN_NO_DETAIL" => "N",<br/> "HIDE_MEASURES" => "N",<br/> "HIDE_NOT_AVAILABLE" => "N",<br/> "INCLUDE_IBLOCK_INTO_CHAIN" => "N",<br/> "LIST_ACTIVE_DATE_FORMAT" => "d.m.Y",<br/> "LIST_FIELD_CODE" => array(<br/> 0 => "ID",<br/> 1 => "CODE",<br/> 2 => "XML_ID",<br/> 3 => "NAME",<br/> 4 => "TAGS",<br/> 5 => "SORT",<br/> 6 => "PREVIEW_TEXT",<br/> 7 => "PREVIEW_PICTURE",<br/> 8 => "DETAIL_TEXT",<br/> 9 => "DETAIL_PICTURE",<br/> 10 => "DATE_ACTIVE_FROM",<br/> 11 => "ACTIVE_FROM",<br/> 12 => "DATE_ACTIVE_TO",<br/> 13 => "ACTIVE_TO",<br/> 14 => "SHOW_COUNTER",<br/> 15 => "SHOW_COUNTER_START",<br/> 16 => "IBLOCK_TYPE_ID",<br/> 17 => "IBLOCK_ID",<br/> 18 => "IBLOCK_CODE",<br/> 19 => "IBLOCK_NAME",<br/> 20 => "IBLOCK_EXTERNAL_ID",<br/> 21 => "DATE_CREATE",<br/> 22 => "CREATED_BY",<br/> 23 => "CREATED_USER_NAME",<br/> 24 => "TIMESTAMP_X",<br/> 25 => "MODIFIED_BY",<br/> 26 => "USER_NAME",<br/> 27 => "",<br/> ),<br/> "LIST_PROPERTY_CODE" => array(<br/> 0 => "BLOG_POST_ID",<br/> 1 => "STOCK_DATE",<br/> 2 => "BLOG_COMMENTS_CNT",<br/> 3 => "PRODUCTS_REFERENCE",<br/> 4 => "",<br/> ),<br/> "MESSAGE_404" => "",<br/> "META_DESCRIPTION" => "-",<br/> "META_KEYWORDS" => "-",<br/> "NEWS_COUNT" => "20",<br/> "PAGER_BASE_LINK_ENABLE" => "N",<br/> "PAGER_DESC_NUMBERING" => "N",<br/> "PAGER_DESC_NUMBERING_CACHE_TIME" => "36000",<br/> "PAGER_SHOW_ALL" => "N",<br/> "PAGER_SHOW_ALWAYS" => "N",<br/> "PAGER_TEMPLATE" => ".default",<br/> "PAGER_TITLE" => "Новости",<br/> "PREVIEW_TRUNCATE_LEN" => "",<br/> "PRODUCT_CONVERT_CURRENCY" => "N",<br/> "PRODUCT_IBLOCK_ID" => "17",<br/> "PRODUCT_IBLOCK_TYPE" => "catalog",<br/> "PRODUCT_PRICE_CODE" => array(<br/> 0 => "BASE",<br/> 1 => "OPT_1",<br/> 2 => "OPT_2",<br/> 3 => "OPT1",<br/> ),<br/> "PRODUCT_PROPERTY_CODE" => array(<br/> 0 => "",<br/> 1 => "",<br/> ),<br/> "SEF_MODE" => "Y",<br/> "SET_LAST_MODIFIED" => "N",<br/> "SET_STATUS_404" => "N",<br/> "SET_TITLE" => "Y",<br/> "SHOW_404" => "Y",<br/> "SHOW_BLOG_COMMENTS" => "Y",<br/> "SORT_BY1" => "SORT",<br/> "SORT_BY2" => "SORT",<br/> "SORT_ORDER1" => "ASC",<br/> "SORT_ORDER2" => "ASC",<br/> "STRICT_SECTION_CHECK" => "N",<br/> "USE_CATEGORIES" => "N",<br/> "USE_FILTER" => "N",<br/> "USE_PERMISSIONS" => "N",<br/> "USE_RATING" => "N",<br/> "USE_REVIEW" => "N",<br/> "USE_RSS" => "N",<br/> "USE_SEARCH" => "N",<br/> "COMPONENT_TEMPLATE" => "sales",<br/> "SEF_FOLDER" => "/stock/",<br/> "FILE_404" => "",<br/> "SEF_URL_TEMPLATES" => array(<br/> "news" => "",<br/> "section" => "",<br/> "detail" => "#ELEMENT_CODE#/",<br/> )<br/> ),<br/> false<br/>);?><br><?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");?>