S
S
surrealisticPillow2015-09-18 23:02:57
1C-Bitrix
surrealisticPillow, 2015-09-18 23:02:57

How to display the product catalog in the sitemap (both sections and the elements themselves)?

There is a product catalog, in which there are dozens of sections with nesting sometimes exceeding 4 levels and about 10k product names.
The question arose - how to display links to all sections and section elements in a tree form on a separate page? It seems to be a trivial task, but I could not find a suitable solution.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Novikov, 2015-10-01
@dmitriy_novikov

The sitemap is built based on the specified menu types. Menus themselves are static, even when you build menus based on a directory structure - it's still a concatenation of a static (usually empty) array of menu items and a second generated array of sections.
Therefore, display a site map on the page and separately display a component that will draw you the entire structure of sections and elements. You can modify the template of the standard "section structure" component by adding CIBlockElement::GetList to it, or you can immediately display sections and elements via GetList, without any components, remembering to connect the infoblock module.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question