bitrix:news.list элементы из имени раздела лат.буквами

<?if(!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED!==true)die();
$this->setFrameMode(true);
?>

<?
$uri=explode('/', $_SERVER['REQUEST_URI']);
?>

<?foreach($arResult['ITEMS'] as $arItem):?>
<?
if(CModule::IncludeModule('iblock')){
$section_id=0;
$db_list=CIBlockSection::GetList(array(), array('IBLOCK_ID'=>14, 'ACTIVE'=>'Y'), true, array('UF_NAME'));
if($db_list->SelectedRowsCount()>0)
while($ar_result=$db_list->GetNext()){
if($ar_result['UF_NAME']==$uri[1])
$section_id=$ar_result['ID'];
}
}
?>
<?if($arItem['IBLOCK_SECTION_ID']==$section_id):?>
<?
$this->AddEditAction($arItem['ID'], $arItem['EDIT_LINK'], CIBlock::GetArrayByID($arItem['IBLOCK_ID'], 'ELEMENT_EDIT'));
$this->AddDeleteAction($arItem['ID'], $arItem['DELETE_LINK'], CIBlock::GetArrayByID($arItem['IBLOCK_ID'], 'ELEMENT_DELETE'), array('CONFIRM' => GetMessage('CT_BNL_ELEMENT_DELETE_CONFIRM')));
?>
<a id='<?=$this->GetEditAreaId($arItem['ID']);?>' href='<?=$arItem['DETAIL_PAGE_URL']?>'><?=$arItem['NAME']?></a>
<?endif?>
<?endforeach?>



Enter your email address:

Delivered by FeedBurner

Добавить комментарий

Ваш e-mail не будет опубликован. Обязательные поля помечены *