// Retrieve a list of all the pages within a website $pages = CSite::GetList(array('IBLOCK_ID' => PAGE_IBLOCK_ID, 'ACTIVE' => 'Y'), false, array('NAME', 'URL')); foreach ($pages as $page) { echo $page['NAME'] . ' - ' . $page['URL'] . '
'; }
// Retrieve a list of all pages within a specified category $pages = CSite::GetList(array('IBLOCK_ID' => PAGE_IBLOCK_ID, 'SECTION_ID' => CATEGORY_ID, 'ACTIVE' => 'Y'), false, array('NAME', 'URL')); foreach ($pages as $page) { echo $page['NAME'] . ' - ' . $page['URL'] . 'In this example, we retrieve a list of all the active pages within a specified category, and display each page's name and URL. CSite GetList method is a built-in method available in the Bitrix Framework. It is part of the CMS package library provided by Bitrix, designed to make developing and managing websites easier and more efficient.
'; }