I
I
IvanRobot2016-04-25 21:40:45
PHP
IvanRobot, 2016-04-25 21:40:45

How to set up the breadcrumb in the product description?

Inside the catalog.section directory, I added the following line to the component_epilog.php
$APPLICATION->AddChainItem($arResult['NAME']);
file: After that, the navigation chain moved into the catalog and the sections began to be displayed:

Home > Catalog > Section

But when you go to the product, it does not change. How can I change the navigation chain to look like this:
Home > Catalog > Section > Product

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Goryachev, 2016-04-27
@SergeGoryachev

I have crumbs everywhere earned as it should out of the box.
It seems to me that you overdid it with the installation of the breadcrumb component itself.
Install it either on the page, next to the Catalog component, or write it directly in the header.
c1eeae4f9ca5461db171ceb6df02d75e.jpg

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question