S
S
sk8er_boi2019-06-18 00:35:16
1C-Bitrix
sk8er_boi, 2019-06-18 00:35:16

Permalinks to sections/products in the Bitrix multilevel catalog?

There is a physical folder "/catalog" where the complex component is located in the index file.
Accepts parameters:

"SEF_FOLDER" => "/catalog/",
"SEF_URL_TEMPLATES" => array(
  "sections" => "",
  "section" => "#SECTION_CODE_PATH#/",
  "element" => "#SECTION_CODE_PATH#/#ELEMENT_CODE#/",
  "compare" => "compare/",
),
...

Structure:
Catalog (folder '/catalog')
-- {section1} ----
{section2} ------
{product}


  • /catalog/{section1}/
  • /catalog/{section1}/{section2}/
  • /catalog/{section1}/{section2}/{product}/

Don't let on links like

  • /catalog/{section2}/
  • /catalog/{section1}/{product}/
  • /catalog/{section2}/{product}/

My observations:
By the link /catalog/{section1}/{section2}/ I see links to the product in the following form:
/catalog/{section2}/{product}/
By the link /catalog/{section1}/:
/catalog/{ section1}/{product}/
By link /catalog/{section2}/:
Returns 404 status, while the page itself is displayed incorrectly. There in a cycle all existing sections get over.
The product is available through the following links:

  • /catalog/{section1}/{product}/
    (breadcrumb): Catalog > Section 1 > Product
  • /catalog/{section2}/{product}/
    : Catalog > Section 1 > Section 2 > Product
  • /catalog/{section1}/{section2}/{product}/ Breadcrumbs
    : Catalog > Section 1 > Section 2 > Product

Maybe some parameters need to be changed in the catalog.section call inside the complex catalog?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
O
Oleg Prilepa, 2019-06-20
@sk8er_boi

Bitrix:catalog complex component has USE_MAIN_ELEMENT_SECTION parameter
Source: https://dev.1c-bitrix.ru/user_help/components/cont...

A
Alexander, 2019-06-18
Madzhugin @Suntechnic

Refuse to use the complex component.

A
Alexander, 2019-06-18
@idruweb

The problem has long been solved, use the search on the Bitrix forums

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question