Y
Y
Yuri Voronin2016-11-30 15:55:34
PHP
Yuri Voronin, 2016-11-30 15:55:34

How does breadcrumb display information block sections?

There is a directory component. I add bread crumbs.
index.php file:

......
<?$APPLICATION->IncludeComponent(
  "bitrix:breadcrumb", 
  ".default", 
  array(
    "PATH" => "",
    "SITE_ID" => "s1",
    "START_FROM" => "0",
    "COMPONENT_TEMPLATE" => ".default"
  ),
  false
);?>
<br>
<?$APPLICATION->IncludeComponent(
  "bitrix:catalog", 
  "catalog_v3", 
  array(
    "ACTION_VARIABLE" => "action",
    "ADD_ELEMENT_CHAIN" => "Y",
    "ADD_PICT_PROP" => "-",
    "ADD_PROPERTIES_TO_BASKET" => "Y",
    "ADD_SECTIONS_CHAIN" => "Y",
    .......................
    )
  ),
  false
);?>
.....

When I go to the IB page, the breadcrumbs work correctly ("Home -> Auto"). There are subsections on the Auto page (eg BMW, AUDI, LADA...). I go to the subsection, bread crumbs do not change. Everything is also "Home -> Auto".
I go from subsection to item detail, breadcrumbs line up "Home -> Auto -> BMW -> X5"
How can I make subsections appear in the navigation chain when I'm on the subsections page?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Korolev, 2016-11-30
@yuraSco

First, check if the ADD_SECTIONS_CHAIN ​​parameter is passed to the catalog.section.list component, which is included in the section.php file of the catalog component (if the catalog template is used).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question