Documentation

landing.landing.resolveIdByPublicUrl

landing.site.resolveIdByPublicUrl(
    landingUrl,
    siteId
)

Method returns page IR by passed relative page URL.

Parameters

ParameterDescriptionVersion
landingUrlPage relative URL.
siteIdSite ID.

Example

BX24.callMethod(
    'landing.landing.resolveIdByPublicUrl',
    {
        landingUrl: '/folder/sub/folder/page/',
        siteId: 1817
    },
    function(result)
    {
        if(result.error())
        {
            console.error(result.error());
        }
        else
        {
            console.info(result.data());
        }
    }
);


© «Bitrix24», 2001-2024
Up