B
B
bichukov2022-03-18 10:03:28
1C-Bitrix
bichukov, 2022-03-18 10:03:28

How to hide breadcrumbs from 404 page?

Good day.
There are several pages on the site.
To such codes, I removed the display of the navigation bar from the main one.

$bIsMainPage= $APPLICATION->GetCurDir(false) == SITE_DIR  ;
        <?if (!$bIsMainPage):?>
            <div class="navigation">
            <div class="navigation-info container">
                    <?$APPLICATION->IncludeComponent("bitrix:breadcrumb", "navigation", Array(
  "PATH" => "",	// Путь, для которого будет построена навигационная цепочка (по умолчанию, текущий путь)
    "SITE_ID" => "s1",	// Cайт (устанавливается в случае многосайтовой версии, когда DOCUMENT_ROOT у сайтов разный)
    "START_FROM" => "0",	// Номер пункта, начиная с которого будет построена навигационная цепочка
  ),
  false
);?>
            </div>
        </div>
         <?endif;?>


Everything is working. only, no matter how I tried to remove them from the 404 page, it doesn’t work.
Please tell me how can this be done?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
tgarl, 2022-03-18
@tgarl

add to page

$APPLICATION->SetPageProperty("NOT_SHOW_NAV_CHAIN", "Y");

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question