Выводим строку навигации, получаемую в шаблоне catalog.section, в шаблон сайта.
1. Там где нужно вывести строку навигации пишем:
<?$APPLICATION->AddBufferContent("ShowNav");?>
2. В result_modifier.php пишем:
$this->__component->arResult["NAV"] = $arResult["NAV_STRING"];
$this->__component->SetResultCacheKeys(array("NAV"));
3. В component_epilog.php пишем:
define(NAV_STRING, $arResult["NAV"]);
function ShowNav()
{
return NAV_STRING;
}
1. Там где нужно вывести строку навигации пишем:
<?$APPLICATION->AddBufferContent("ShowNav");?>
2. В result_modifier.php пишем:
$this->__component->arResult["NAV"] = $arResult["NAV_STRING"];
$this->__component->SetResultCacheKeys(array("NAV"));
3. В component_epilog.php пишем:
define(NAV_STRING, $arResult["NAV"]);
function ShowNav()
{
return NAV_STRING;
}