A
A
Andrey Eskov2017-05-31 12:09:47
1C-Bitrix
Andrey Eskov, 2017-05-31 12:09:47

How to configure the CNC of the bitrix:catalog.store component?

Good afternoon. Tell me who knows how to properly configure the CNC for the bitrix:catalog.store component.
There is the following structure:
Page with the component: /storages/index.php
When you go to the addresses site.ru/storages/index.php and site.ru/storages/ the component opens with a list of warehouses.
When you navigate through any of the warehouses, the list of warehouses opens again, but the link changes to site.ru/storages/1/
My component settings

<?$APPLICATION->IncludeComponent(
  "bitrix:catalog.store", 
  ".default", 
  array(
    "COMPONENT_TEMPLATE" => ".default",
    "SEF_MODE" => "Y",
    "SEF_FOLDER" => "/storages",
    "CACHE_TYPE" => "A",
    "CACHE_TIME" => "3600",
    "PHONE" => "Y",
    "SCHEDULE" => "Y",
    "SET_TITLE" => "Y",
    "TITLE" => "Список складов с подробной информацией",
    "MAP_TYPE" => "0",
    "COMPOSITE_FRAME_MODE" => "A",
    "COMPOSITE_FRAME_TYPE" => "AUTO",
    "SEF_URL_TEMPLATES" => array(
      "liststores" => "/storages",
      "element" => "/#store_id#/",
    )
  ),
  false
);?>

It generates links correctly. but does not go into details.
Well, actually from the code it is clear that I set the component settings as follows: (But I tried everything)
Enable CNC support:
checkbox is CNC catalog (relative to the site root): /storages
List of warehouses: /storages Details
about the warehouse: /#store_id#/
What did I do wrong, what did I miss?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Eskov, 2017-05-31
@taurus2790

I'll post the answer from the comments here. to be immediately visible.
Many thanks Sergey ! He correctly suggested.
"SEF_FOLDER" => "/storages", replace with "SEF_FOLDER" => "/storages/",
In Bitrix you need to specify a slash at the end for folders
Accordingly
"SEF_URL_TEMPLATES" => array(
"liststores" => "",
"element " => "#store_id#/",
)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question