clearFolderIndex
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 function clearFolderIndex( );
When page is set as the main (index) folder page, this method resets this flag. Method has no parameters.
Example
if (\Bitrix\Main\Loader::includeModule('landing')) { \Bitrix\Landing\Landing::setEditMode(true); $landing = \Bitrix\Landing\Landing::createInstance(20450); if ($landing->exist()) { $landing->clearFolderIndex(); } foreach ($landing->getError()->getErrors() as $error) { echo $error->getMessage() . '<br/>'; } }
© «Bitrix24», 2001-2024