A
A
Alexander2020-10-29 12:48:21
1C-Bitrix
Alexander, 2020-10-29 12:48:21

How to display a subsection in the browser bar in the product catalog?

Help me figure out how to set up paths to subsections in the product catalog.
In the catalog section, the catalog complex component displays a catalog of products.
There are three root sections in the product catalog: Russian cuisine, Japanese cuisine and Italian cuisine.

Each of the root sections has its own subsections, for example:

Italian cuisine section :

  • subsection pizza
  • subsection of risotto
  • subsection of pasta


Now, when you follow links to the subsection pizza (pizza), which in the italia section (Italian cuisine) in the browser line, instead of localsite/catalog/italia/pizza , localsite/catalog/pizza is displayed , that is, the italia path drops out of the link, you need it to be.

How to make the name of the subsection (italia) not drop out and also be present when going to the detailed page of the catalog element, so that the path displays: catalog - section - subsection, according to the template /catalog/italia/pizza/detail page of the element.

the standard path is formed in the following way:
for the section - #SECTION_CODE#/
for the element page #SECTION_CODE#/#ELEMENT_CODE#/

How in my case is it better to implement the output of the subsection in the catalog url?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Igoshev, 2020-10-29
@inviziblll

For a section - #SECTION_CODE_PATH#/ - will return the entire path with sections and subsections.
For the element page #SECTION_CODE_PATH#/#ELEMENT_CODE#/ - the same for the element.
Do not forget about the canonical and the main section of the element, otherwise duplicates will be sprinkled if your product can be in different sections.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question