Z
Z
z_u_q2018-05-14 13:44:42
1C-Bitrix
z_u_q, 2018-05-14 13:44:42

How can I prevent breadcrumbs from showing up on a particular page?

Let's say that I don't need breadcrumbs on the mysite.ru/catalog/products page. How can I implement this?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
I
Ilya, 2018-05-14
Hrebet @hrebet

1C-Bitrix Developers - How to disable breadcrumbs...

A
Anton, 2018-05-14
@Eridani

How exactly in Bitrix - the devil knows, but where the crumbs template is displayed - Take the page ID or its url, and if != this page, then output

A
Alex-1917, 2018-05-14
@alex-1917

Let's admit it, we won't let it, but why dissemble right away? for sure you need NOT to display crumbs on some other pages, while the solution may be radically different...
crumbs on Bitrix can be implemented in at least 5 ways, so the answer depends on your option, And your option is unknown, alas and oh, go you are my friend in Google!!!
Those. It is on ONE page not to display - it is to take an ID and enter it into the output condition of the component.
If you do not display on the pages of a component or section, then edit the template of that component or add a condition in conjunction with the section ID.
Here, BAT, because of the stupidity of Bitrix, BAT, you will have to sweat, here you, BAT, will not have an answer in the WordPress style. therefore, an hour of a Bitrix pro is equal to 1500-3000 rubles, this is not a WordPress student with 200 rubles per hour))), or even for a review)))

P
pcsezam, 2018-05-15
@pcsezam

I would create a class for storing global parameters and enter all the necessary data there: IDs of infoblocks, addresses or IDs of pages on which breadcrumbs should be disabled, currency codes, and much more.
Next, in the result_modifier.php of the breadcrumb component template, it would check the validity of the condition based on data from the store.
And depending on this, he would make a decision to withdraw the crumbs.
This is one of many implementation options.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question