D
D
Denis Dormadekhin2018-09-23 20:29:35
1C-Bitrix
Denis Dormadekhin, 2018-09-23 20:29:35

How to determine that you are on the detailed page of the catalog?

Good day!
Is it possible to determine in the header that you are on the detailed page of the catalog?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Denis Dormadekhin, 2018-09-24
@dormadekhin

In general, we got such a "crutch":

public static function isSectionInCatalog($iblockID, $url) {
    $code = array_pop(array_filter(explode( '/',  $url)));
    $arFilter = array("IBLOCK_ID"=>$iblockID, "CODE" => $code);
    $rsSections = CIBlockSection::GetList(array(),array('IBLOCK_ID' => $iblockID, '=CODE' => $code));
    return ($rsSections->Fetch() !== false);
  }

A
Alexander, 2018-09-24
@idruweb

in component_epilog write the desired checkbox to the global variable or page property

A
Ainur Valiev, 2018-09-23
@vaajnur

$APPLICATION->GetCurPage(false)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question