Вывод всех элементов из news.list

Вывод компонента news.list

<div class="portfolio_index">

<h2>Наши работы</h2>
<?$APPLICATION->IncludeComponent(
"bitrix:news.list", 
"portfolio_index", 
array(
"ACTIVE_DATE_FORMAT" => "d.m.Y",
"ADD_SECTIONS_CHAIN" => "N",
"AJAX_MODE" => "N",
"AJAX_OPTION_ADDITIONAL" => "",
"AJAX_OPTION_HISTORY" => "N",
"AJAX_OPTION_JUMP" => "N",
"AJAX_OPTION_STYLE" => "Y",
"CACHE_FILTER" => "N",
"CACHE_GROUPS" => "Y",
"CACHE_TIME" => "36000000",
"CACHE_TYPE" => "A",
"CHECK_DATES" => "Y",
"COMPONENT_TEMPLATE" => "portfolio_index",
"COMPOSITE_FRAME_MODE" => "A",
"COMPOSITE_FRAME_TYPE" => "AUTO",
"DETAIL_URL" => "/portfolio/#SECTION_CODE_PATH#/#ELEMENT_CODE#/",
"DISPLAY_BOTTOM_PAGER" => "Y",
"DISPLAY_DATE" => "Y",
"DISPLAY_NAME" => "Y",
"DISPLAY_PICTURE" => "Y",
"DISPLAY_PREVIEW_TEXT" => "Y",
"DISPLAY_TOP_PAGER" => "N",
"FIELD_CODE" => array(
0 => "DETAIL_PICTURE",
1 => "",
),
"FILTER_NAME" => "",
"HIDE_LINK_WHEN_NO_DETAIL" => "N",
"IBLOCK_ID" => "13",
"IBLOCK_TYPE" => "news",
"INCLUDE_IBLOCK_INTO_CHAIN" => "N",
"INCLUDE_SUBSECTIONS" => "Y",
"MESSAGE_404" => "",
"NEWS_COUNT" => "50",
"PAGER_BASE_LINK_ENABLE" => "N",
"PAGER_DESC_NUMBERING" => "N",
"PAGER_DESC_NUMBERING_CACHE_TIME" => "36000",
"PAGER_SHOW_ALL" => "N",
"PAGER_SHOW_ALWAYS" => "N",
"PAGER_TEMPLATE" => ".default",
"PAGER_TITLE" => "Портфолио",
"PARENT_SECTION" => "",
"PARENT_SECTION_CODE" => "",
"PREVIEW_TRUNCATE_LEN" => "",
"PROPERTY_CODE" => array(
0 => "",
1 => "ATT_PHOTO",
),
"SET_BROWSER_TITLE" => "N",
"SET_LAST_MODIFIED" => "N",
"SET_META_DESCRIPTION" => "Y",
"SET_META_KEYWORDS" => "Y",
"SET_STATUS_404" => "N",
"SET_TITLE" => "N",
"SHOW_404" => "N",
"SORT_BY1" => "SORT",
"SORT_BY2" => "SORT",
"SORT_ORDER1" => "DESC",
"SORT_ORDER2" => "ASC",
"STRICT_SECTION_CHECK" => "N"
),
false
);?>
</div>


Код шаблона компонента

<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
$this->setFrameMode(true);
?>
<div id="index_photo" class="gallery">
<?foreach($arResult["ITEMS"] as $arItem):?>
<? foreach ($arItem["PROPERTIES"]["ATT_PHOTO"]["VALUE"] as $value) { 
$newPhoto = CFile::GetFileArray($value); ?>
<div>
<a href="<?echo $newPhoto['SRC'];//=$arItem["DETAIL_PAGE_URL"]?>" title="<?=$newPhoto["NAME"]?>">
<?
$file = CFile::ResizeImageGet(($newPhoto), array('width'=>350, 'height'=>260), BX_RESIZE_IMAGE_EXACT, true);                
echo '<img src="'.$file['src'].'" alt="'.$arItem["NAME"].'" />';
?>
</a>
</div>
    <? } ?>
<?endforeach;?>
</div>
<!-- <pre>
<?// print_r($newPhoto); ?>
</pre> -->
Менеджер
Сафронова Екатерина
Ведущий специалист
+7 000-00-88
Консультация специалиста
Наш менеджер перезвонит вам в течении 5 минут
Менеджер
Команда ГВОЗДЕВСОФТ
Оставить заявку
Менеджер
Хорошова Анастасия
Сметчик
+7 000-00-99
Заказать расчет
Бесплатный расчет сметы в течении одного дня