Использовал на своем проекте:
<div class="pagen">
<?$rs=CIBlockElement::GetList(array("active_from" => "desc"), array("ACTIVE"=>"Y", "IBLOCK_ID"=>$arResult["IBLOCK_ID"]), false, array("nElementID"=>$arResult["ID"], "nPageSize"=>1), array("ID"));
while($ar=$rs->GetNext())
{ $page[] = $ar["ID"]; }?>
<div class="news_page">
<?if (count($page) == 2 && $arResult["ID"] == $page[0]

?>
<a href="/news/<?=$page[1]?>/" class="next-page"></a>
<?elseif (count($page) == 3

?>
<a href="/news/<?=$page[0]?>/" class="prev-page"></a>
<a href="/news/<?=$page[2]?>/" class="next-page"></a>
<?elseif (count($page) == 2 && $arResult["ID"] == $page[1]

?>
<a href="/news/<?=$page[0]?>/" class="prev-page"></a>
<?endif;?>
</div>
</div>
Вам только NAME добавить надо

Должно работать
