A
A
Alexey Larionov2020-04-16 21:37:37
1C-Bitrix
Alexey Larionov, 2020-04-16 21:37:37

How to configure cnc in Bitrix when there is a large nesting of sections?

Section structure example:
Section1/Section2/Section3/Element
What CNC settings should be registered in the infoblock and in the component parameter? Plain language please. Teapot ).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Nikolaev, 2020-04-17
@gromdron

In general, as VicTHOR already said, you can use such a parameter as SECTION_CODE_PATH (you can read more about CNC in the documentation)
As for your structure:

Section1/Section2/Section3/Element

I would not recommend you to use this structure, since when you include a product in several sections, you will have a complete mess with canonical links and duplicates in the catalog.
Use a layout for sections:
/catalog/#SECTION_CODE_PATH#/
And for elements:
/product/#ELEMENT_CODE#/
This will allow you to include one product in several sections, but there will be no problems with either CNC, canonical or search.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question