В шаблоне компонента news.detail прописываем:
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
$this->setFrameMode(true);
?>
<div id="portfolio_photo">
<div class="fotogallery_block gallery img_zoom">
<?foreach($arResult["ITEMS"] as $arItem):?>
<? foreach ($arItem["PROPERTIES"]["ATT_PHOTO"]["VALUE"] as $value) {
$newPhoto = CFile::GetFileArray($value); ?>
<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>
<? } ?>
<?endforeach;?>
</div>
</div>
<!-- <pre>
<?// print_r($newPhoto); ?>
</pre> -->