result_modifier.php
439 Bytes
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
if($this->__page != "list" && $arResult['VARIABLES']['CON_CODE'])
{
if(!CModule::IncludeModule("iblock"))
return;
$res = CIBlockElement::GetList(Array(),Array("CODE" => $arResult['VARIABLES']['CON_CODE']),false,false,Array("ID","NAME","DETAIL_PAGE_URL"));
$Con = $res->GetNext();
$APPLICATION->AddChainItem($Con['NAME'], $Con['DETAIL_PAGE_URL']."winners/");
}
?>