<?php
if (CModule::IncludeModule("iblock")):
$iblock_id = 15;
# show url my elements
$my_elements = CIBlockElement::GetList (
Array("ID" => "ASC"),
Array("IBLOCK_ID" => $iblock_id),
false,
false,
Array('ID', 'NAME', 'DETAIL_PAGE_URL')
);
while($ar_fields = $my_elements->GetNext())
{
echo "<pre>" . urldecode($ar_fields['NAME']) . </pre>;
echo "<pre>" . urldecode($ar_fields['DETAIL_PAGE_URL']) . "</pre>";
}
endif;
?>