S
S
Sergey Valitov2018-05-25 11:45:59
1C-Bitrix
Sergey Valitov, 2018-05-25 11:45:59

How to set up urlrewrite to display a directory?

Hello! Guys, such a question. There is an output of directory elements, and urlrewrite:

array(
    "CONDITION" => "#^/catalog/([0-9]+)/([0-9]+)/(.*)#",
    "RULE" => "SECTION_ID=\$1&ELEMENT_ID=\$2&dopinfo=\$3",
    "ID" => "",
    "PATH" => "/catalog/detail.php",
  ),

The path to the element is always the same - #SITE_DIR#/catalog/#SECTION_ID#/#ELEMENT_ID#/
The path to the section is always the same - #SITE_DIR#/catalog/#SECTION_ID#/
If we failed at the 5th level of nesting, then the path will be site.ru /catalog/1234/5678/
In connection with this question. How to display all nested elements of the current section in the catalog.section component?
The checkmark does not help in the settings. And I want to do without section_code_path.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question