resolveIdByPublicUrl
Attention! We strongly recommend first to learn more about REST documentation for Sites module to understand how the module functions (with REST available in Bitrix24 Self-hosted editions). View this documentation as useful source when working with Bitrix24 Self-hosted editions.
public static function resolveIdByPublicUrl( $landingUrl, $siteId );
Method returns page ID by passed relative page URL.
Parameters
Parameter | Description | Version |
---|---|---|
$landingUrl | Page relative URL. | |
$siteId | Site ID. |
Example
if (\Bitrix\Main\Loader::includeModule('landing')) { echo \Bitrix\Landing\Landing::resolveIdByPublicUrl('/folder/sub/subfolder/advokat/', 2621); }
© «Bitrix24», 2001-2024