Answer the question
In order to leave comments, you need to log in
How to display subcategory products on the 1s Bitrix page?
There is a catalog.
Categories are displayed on the left, products in the center. Everything is taken out. Using the CNC, each product has a link.
When you click on a product in the general list, you go to something like this link catalog/shkafy/shkafy_stellazhi/42614. But a page opens with the same list of products, but subdirectories appear in the sidebar of the catalog,
but the detailed view does not work
Answer the question
In order to leave comments, you need to log in
In Bitrix, in the infoblock, only the rules for generating urls for sections and elements of this infoblock are set.
The CNC rules themselves are configured in a complex component. And as I expected, they are different for you, which causes such behavior. You have #SECTION_CODE# in the path template, but it should be the same as in the infoblock settings #SECTION_CODE_PATH#
As it should be, at the very end of the file
"SEF_URL_TEMPLATES" => array(
"sections" => "",
"section" => "#SECTION_CODE_PATH#/",
"element" => "#SECTION_CODE_PATH#/#ELEMENT_CODE#/",
"compare" => "compare/",
"smart_filter" => "#SECTION_CODE_PATH#/filter/#SMART_FILTER_PATH#/apply/",
)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question