Задать вопрос
@redesupar

Как правильно сделать ЧПУ в инфоблоке битрикс?

БУС Бизнес
есть папка /moscow/market/ там в index.php компонент news
и вот в чем проблема, этот компонент написан в стиле показать на карте и списком и вот в чем проблема, заказчик хочет чтобы карта и список были с разными ссылками (описаниями и прочее) и встал вопрос как его реализовать.
Когда переходишь по этой ссылке /moscow/market/ то она перекидывает на /moscow/market/shop shop - это раздел инфоблока. Вот вызов инфоблока
<?$APPLICATION->IncludeComponent(
	"bitrix:news",
	"market",
	Array(
		"ADD_ELEMENT_CHAIN" => "N",
		"ADD_SECTIONS_CHAIN" => "N",
		"AJAX_MODE" => "N",
		"AJAX_OPTION_ADDITIONAL" => "",
		"AJAX_OPTION_HISTORY" => "N",
		"AJAX_OPTION_JUMP" => "N",
		"AJAX_OPTION_STYLE" => "N",
		"BROWSER_TITLE" => "-",
		"CACHE_FILTER" => "N",
		"CACHE_GROUPS" => "Y",
		"CACHE_TIME" => "36000000",
		"CACHE_TYPE" => "N",
		"CHECK_DATES" => "Y",
		"DETAIL_ACTIVE_DATE_FORMAT" => "d.m.Y",
		"DETAIL_DISPLAY_BOTTOM_PAGER" => "Y",
		"DETAIL_DISPLAY_TOP_PAGER" => "N",
		"DETAIL_FIELD_CODE" => array("","ID","CODE","XML_ID","NAME","TAGS","SORT","PREVIEW_TEXT","PREVIEW_PICTURE","DETAIL_TEXT","DETAIL_PICTURE","DATE_ACTIVE_FROM","ACTIVE_FROM","DATE_ACTIVE_TO","ACTIVE_TO","SHOW_COUNTER","SHOW_COUNTER_START","IBLOCK_TYPE_ID","IBLOCK_ID","IBLOCK_CODE","IBLOCK_NAME","IBLOCK_EXTERNAL_ID","DATE_CREATE","CREATED_BY","CREATED_USER_NAME","TIMESTAMP_X","MODIFIED_BY","USER_NAME",""),
		"DETAIL_PAGER_SHOW_ALL" => "Y",
		"DETAIL_PAGER_TEMPLATE" => "",
		"DETAIL_PAGER_TITLE" => "Страница",
		"DETAIL_PROPERTY_CODE" => array("KITCHEN_TYPE","KITCHEN_TYPE_EN","WORK_TIME","WORK_TIME_EN","DETAIL_TEXT_EN","TITLE_CARD","TITLE_CARD_EN","NAME_EN","CAT","CAT_EN","PLACE","PLACE_EN","NUMBER","NUMBER_EN","TEXT_CARD","TEXT_CARD_EN","PREVIEW_TEXT_EN","LAST_TEXT_CARD","LAST_TEXT_CARD_EN","SRT_SECTION","LINK_FB","LINK_INST","LINK_VK","DETAIL_LINK_FOR_SCHEME","LINK_COMPANY","SHOW_ON_SCHEME","SHOW_ON_SCHEME_EN","CATEGORY","CATEGORY_EN","FILL_SPISOK","FILL_SCHEME",""),
		"DETAIL_SET_CANONICAL_URL" => "N",
		"DISPLAY_BOTTOM_PAGER" => "Y",
		"DISPLAY_DATE" => "Y",
		"DISPLAY_NAME" => "Y",
		"DISPLAY_PICTURE" => "Y",
		"DISPLAY_PREVIEW_TEXT" => "Y",
		"DISPLAY_TOP_PAGER" => "N",
		"HIDE_LINK_WHEN_NO_DETAIL" => "N",
		"IBLOCK_ID" => "60",
		"IBLOCK_TYPE" => "MOSCOW",
		"INCLUDE_IBLOCK_INTO_CHAIN" => "N",
		"LIST_ACTIVE_DATE_FORMAT" => "d.m.Y",
		"LIST_FIELD_CODE" => array("",""),
		"LIST_PROPERTY_CODE" => array("KITCHEN_TYPE","KITCHEN_TYPE_EN","WORK_TIME","WORK_TIME_EN","DETAIL_TEXT_EN","NAME_EN","CAT","CAT_EN","PLACE","PLACE_EN","PREVIEW_TEXT_EN","SHOW_ON_SCHEME","CATEGORY","CATEGORY_EN",""),
		"MESSAGE_404" => "",
		"META_DESCRIPTION" => "-",
		"META_KEYWORDS" => "-",
		"NEWS_COUNT" => "99999",
		"PAGER_BASE_LINK_ENABLE" => "N",
		"PAGER_DESC_NUMBERING" => "N",
		"PAGER_DESC_NUMBERING_CACHE_TIME" => "36000",
		"PAGER_SHOW_ALL" => "N",
		"PAGER_SHOW_ALWAYS" => "N",
		"PAGER_TEMPLATE" => "show_more_mall",
		"PAGER_TITLE" => "Новости",
		"PREVIEW_TRUNCATE_LEN" => "",
		"SEF_FOLDER" => "/moscow/market/",
		"SEF_MODE" => "Y",
		"SEF_URL_TEMPLATES" => Array("detail"=>"#SECTION_CODE#/#ELEMENT_CODE#/","news"=>"/","section"=>"#SECTION_CODE#/"),
		"SET_LAST_MODIFIED" => "N",
		"SET_STATUS_404" => "Y",
		"SET_TITLE" => "Y",
		"SHOW_404" => "N",
		"SORT_BY1" => "SORT",
		"SORT_BY2" => "SORT",
		"SORT_ORDER1" => "ASC",
		"SORT_ORDER2" => "ASC",
		"STRICT_SECTION_CHECK" => "N",
		"USE_CATEGORIES" => "N",
		"USE_FILTER" => "N",
		"USE_PERMISSIONS" => "N",
		"USE_RATING" => "N",
		"USE_REVIEW" => "N",
		"USE_RSS" => "N",
		"USE_SEARCH" => "N",
		"USE_SHARE" => "N"
	)
);?>

Решил сделать так создал 2 папки(shop и shop-list) и разметил в них тот же компонент но с другими путями
"SEF_FOLDER" => "/moscow/market/shop",
		"SEF_MODE" => "Y",
		"SEF_URL_TEMPLATES" => Array("detail"=>"#ELEMENT_CODE#/","news"=>"/","section"=>"/"),

и страница тупо падает, urlrewrite нормально стоит, как мне решить эту проблему?
  • Вопрос задан
  • 120 просмотров
Подписаться 1 Простой 3 комментария
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы